From b8fc11828c139269848f2388ac248a15793897e5 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 21 Feb 2020 10:10:15 +0800 Subject: [PATCH] 1 --- db/migrate/20200218060227_create_salesmans.rb | 14 +++++++------- .../20200218060757_create_salesman_channels.rb | 10 +++++----- .../20200218060807_create_salesman_customers.rb | 12 ++++++------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/db/migrate/20200218060227_create_salesmans.rb b/db/migrate/20200218060227_create_salesmans.rb index 8b9e6f367..74c78da07 100644 --- a/db/migrate/20200218060227_create_salesmans.rb +++ b/db/migrate/20200218060227_create_salesmans.rb @@ -1,11 +1,11 @@ class CreateSalesmans < ActiveRecord::Migration[5.2] def change - # create_table :salesmans do |t| - # t.references :user - # t.string :name - # t.integer :salesman_channels_count - # t.integer :salesman_customers_count - # t.timestamps - # end + create_table :salesmans do |t| + t.references :user + t.string :name + t.integer :salesman_channels_count + t.integer :salesman_customers_count + t.timestamps + end end end diff --git a/db/migrate/20200218060757_create_salesman_channels.rb b/db/migrate/20200218060757_create_salesman_channels.rb index 48946aba2..e43fd0a51 100644 --- a/db/migrate/20200218060757_create_salesman_channels.rb +++ b/db/migrate/20200218060757_create_salesman_channels.rb @@ -1,9 +1,9 @@ class CreateSalesmanChannels < ActiveRecord::Migration[5.2] def change - # create_table :salesman_channels do |t| - # t.references :salesman - # t.references :school - # t.timestamps - # end + create_table :salesman_channels do |t| + t.references :salesman + t.references :school + t.timestamps + end end end diff --git a/db/migrate/20200218060807_create_salesman_customers.rb b/db/migrate/20200218060807_create_salesman_customers.rb index 7b9c99753..a27f8ca95 100644 --- a/db/migrate/20200218060807_create_salesman_customers.rb +++ b/db/migrate/20200218060807_create_salesman_customers.rb @@ -1,10 +1,10 @@ class CreateSalesmanCustomers < ActiveRecord::Migration[5.2] def change - # create_table :salesman_customers do |t| - # t.references :salesman - # t.references :user - # t.references :school - # t.timestamps - # end + create_table :salesman_customers do |t| + t.references :salesman + t.references :user + t.references :school + t.timestamps + end end end