aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/author.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/fixtures/author.rb')
-rw-r--r--activerecord/test/fixtures/author.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/author.rb b/activerecord/test/fixtures/author.rb
index 1dda0f837c..e510dd1992 100644
--- a/activerecord/test/fixtures/author.rb
+++ b/activerecord/test/fixtures/author.rb
@@ -28,6 +28,8 @@ class Author < ActiveRecord::Base
has_many :nothings, :through => :kateggorisatons, :class_name => 'Category'
+ belongs_to :author_address
+
attr_accessor :post_log
def after_initialize
@@ -55,3 +57,7 @@ class Author < ActiveRecord::Base
raise Exception.new("You can't add a post")
end
end
+
+class AuthorAddress < ActiveRecord::Base
+ has_one :author
+end \ No newline at end of file