OSDN Git Service

t30350#:fix destroy
[pettanr/pettanr.git] / app / models / author.rb
index 83db8dc..d574bae 100644 (file)
@@ -1,6 +1,8 @@
 class Author < ActiveRecord::Base
   has_one :artist
   belongs_to :user
+  has_many :comic
+  has_many :panel
   
   validates :name, :presence => true, :length => {:maximum => 30}
   validates :user_id, :numericality => true, :existence => {:both => false}