spec/db/schema.rb in goldiloader-0.0.6 vs spec/db/schema.rb in goldiloader-0.0.7
- old
+ new
@@ -65,9 +65,10 @@
has_many :read_only_posts, -> { readonly }, class_name: 'Post'
has_many :limited_posts, -> { limit(2) }, class_name: 'Post'
has_many :grouped_posts, -> { group(:blog_id) }, class_name: 'Post'
has_many :offset_posts, -> { offset(2) }, class_name: 'Post'
has_many :from_posts, -> { from('(select distinct blog_id from posts) as posts') }, class_name: 'Post'
+ has_many :instance_dependent_posts, ->(instance) { Post.where(blog_id: instance.id) }, class_name: 'Post'
has_many :posts_ordered_by_author, -> { joins(:author).order('users.name') }, class_name: 'Post'
has_many :authors_with_join, -> { joins(:address).order('addresses.city') }, through: :posts, source: :author
else