1 class Speech < ActiveRecord::Base
2 belongs_to :speech_balloon
4 # validates :speech_balloon_id, :presence => true, :numericality => true, :existence => true
5 validates :x, :presence => true, :numericality => true
6 validates :y, :presence => true, :numericality => true
7 validates :width, :presence => true, :numericality => true, :natural_number => true
8 validates :height, :presence => true, :numericality => true, :natural_number => true
9 # validates :settings, :presence => true