abiao лет назад: 5
Родитель
Сommit
fc20c62da4

+ 4 - 0
app/models/live_award.rb

@@ -101,6 +101,8 @@ class LiveAward < ActiveRecord::Base
           end
           end
           field :status
           field :status
           field :address
           field :address
+          field :contact
+          field :tel
           field :created_at
           field :created_at
           field :created_at
           field :created_at
           field :updated_at
           field :updated_at
@@ -120,6 +122,8 @@ class LiveAward < ActiveRecord::Base
           field :cent
           field :cent
           field :status
           field :status
           field :address
           field :address
+          field :contact
+          field :tel
         end
         end
     end
     end
 end
 end

+ 2 - 0
config/locales/models/live_award.yml

@@ -22,5 +22,7 @@ zh-CN:
         cash: 赠代办费(分)
         cash: 赠代办费(分)
         cent: 赠积分(分)
         cent: 赠积分(分)
         address: 收货地址
         address: 收货地址
+        contact: 联系人
+        tel: 联系人电话
         created_at: 创建时间
         created_at: 创建时间
         updated_at: 更新时间
         updated_at: 更新时间

+ 4 - 0
db/migrate/20210118116666_create_live_awards.rb

@@ -29,6 +29,10 @@ class CreateLiveAwards < ActiveRecord::Migration
       t.column :cent, :integer, :limit => 11, :default => 0
       t.column :cent, :integer, :limit => 11, :default => 0
       #收货地址
       #收货地址
       t.column :address, :string,:limit => 256
       t.column :address, :string,:limit => 256
+      #联系人
+      t.column :contact, :string,:limit => 256
+      #联系电话
+      t.column :tel, :string,:limit => 256
       # 发放状态
       # 发放状态
       t.column :status, :boolean, :default=>0
       t.column :status, :boolean, :default=>0
       t.timestamps
       t.timestamps