spec/support/sqlite_seed.rb in bullet-6.1.4 vs spec/support/sqlite_seed.rb in bullet-6.1.5

- old
+ new

@@ -19,10 +19,17 @@ post1 = category1.posts.create(name: 'first', writer: writer1) post1a = category1.posts.create(name: 'like first', writer: writer2, active: false) post2 = category2.posts.create(name: 'second', writer: writer2) post3 = category2.posts.create(name: 'third', writer: writer2) + deal1 = Deal.new(name: 'Deal 1') + deal1.posts << post1 + deal1.posts << post2 + deal2 = Deal.new(name: 'Deal 2') + post1.deals << deal1 + post1.deals << deal2 + comment1 = post1.comments.create(name: 'first', author: writer1) comment2 = post1.comments.create(name: 'first2', author: writer1) comment3 = post1.comments.create(name: 'first3', author: writer1) comment4 = post1.comments.create(name: 'second', author: writer2) comment8 = post1a.comments.create(name: 'like first 1', author: writer1) @@ -152,9 +159,14 @@ end create_table :deals do |t| t.column :name, :string t.column :hotel_id, :integer + end + + create_table :deals_posts do |t| + t.column :deal_id, :integer + t.column :post_id, :integer end create_table :documents do |t| t.string :name t.string :type