daiao 5 years ago
parent 1c14311aa0
commit 84d0218e48

@ -1,11 +1,11 @@
class CreateSalesmans < ActiveRecord::Migration[5.2] class CreateSalesmans < ActiveRecord::Migration[5.2]
def change def change
create_table :salesmans do |t| # create_table :salesmans do |t|
t.references :user # t.references :user
t.string :name # t.string :name
t.integer :salesman_channels_count # t.integer :salesman_channels_count
t.integer :salesman_customers_count # t.integer :salesman_customers_count
t.timestamps # t.timestamps
end # end
end end
end end

@ -1,9 +1,9 @@
class CreateSalesmanChannels < ActiveRecord::Migration[5.2] class CreateSalesmanChannels < ActiveRecord::Migration[5.2]
def change def change
create_table :salesman_channels do |t| # create_table :salesman_channels do |t|
t.references :salesman # t.references :salesman
t.references :school # t.references :school
t.timestamps # t.timestamps
end # end
end end
end end

@ -1,10 +1,10 @@
class CreateSalesmanCustomers < ActiveRecord::Migration[5.2] class CreateSalesmanCustomers < ActiveRecord::Migration[5.2]
def change def change
create_table :salesman_customers do |t| # create_table :salesman_customers do |t|
t.references :salesman # t.references :salesman
t.references :user # t.references :user
t.references :school # t.references :school
t.timestamps # t.timestamps
end # end
end end
end end

Loading…
Cancel
Save