spec/support/sqlite_seed.rb in bullet-5.7.6 vs spec/support/sqlite_seed.rb in bullet-5.8.0
- old
+ new
@@ -43,12 +43,14 @@
teacher1.students << student1
teacher2.students << student2
firm1 = Firm.create(name: 'first')
firm2 = Firm.create(name: 'second')
- client1 = Client.create(name: 'first')
- client2 = Client.create(name: 'second')
+ group1 = Group.create(name: 'first')
+ group2 = Group.create(name: 'second')
+ client1 = Client.create(name: 'first', group: group1)
+ client2 = Client.create(name: 'second', group: group2)
firm1.clients = [client1, client2]
firm2.clients = [client1, client2]
client1.firms << firm1
client2.firms << firm2
@@ -123,10 +125,11 @@
t.integer :country_id
end
create_table :clients do |t|
t.column :name, :string
+ t.column :group_id, :integer
end
create_table :comments do |t|
t.column :name, :string
t.column :post_id, :integer
@@ -166,9 +169,13 @@
t.column :name, :string
t.column :category_id, :integer
end
create_table :firms do |t|
+ t.column :name, :string
+ end
+
+ create_table :groups do |t|
t.column :name, :string
end
create_table :hotels do |t|
t.column :name, :string