diff options
Diffstat (limited to 'activerecord/test/models/family.rb')
-rw-r--r-- | activerecord/test/models/family.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/models/family.rb b/activerecord/test/models/family.rb new file mode 100644 index 0000000000..5ae5a78c95 --- /dev/null +++ b/activerecord/test/models/family.rb @@ -0,0 +1,4 @@ +class Family < ActiveRecord::Base + has_many :family_trees, -> { where(token: nil) } + has_many :members, through: :family_trees +end |