Prechádzať zdrojové kódy

add admin user depart records

abiao 4 rokov pred
rodič
commit
82ea5a2ecb

+ 1 - 0
config/locales/models/order_detail.yml

@@ -18,6 +18,7 @@ zh-CN:
        is_zeng: 是否赠品
        size_name: 规格一
        color_name: 规格二
+       depart: 部门
        created_at: 创建时间
        updated_at: 修改时间
 

+ 3 - 0
db/migrate/20210204114641_create_admin_departs.rb

@@ -13,9 +13,12 @@ class CreateAdminDeparts < ActiveRecord::Migration
       t.timestamps
     end
     add_index :admin_departs, :admin_user_id
+    add_column :order_details, :depart, :integer
+
   end
 
   def down
   	drop_table :admin_departs
+    drop_table :order_details
   end
 end