Sha256: d183793638a95ebd6404d8b1d515b0cff4f0b6f9c5cc31a93f4a6e64e312d479
Contents?: true
Size: 1.36 KB
Versions: 1
Compression:
Stored size: 1.36 KB
Contents
class CreateEducodeSalesActivityFollowUps < ActiveRecord::Migration[5.2] def change create_table :educode_sales_activity_follow_ups do |t| t.references :activity t.references :staff t.text :description t.integer :info_id t.text :advise t.timestamps end add_column :educode_sales_activities, :state_id, :integer, comment: '状态' add_column :educode_sales_activities, :sponsor, :string, comment: '主办方' add_column :educode_sales_activities, :linkman, :string, comment: '联系人' add_column :educode_sales_activities, :phone, :string, comment: '联系电话' add_column :educode_sales_activities, :scale, :string, comment: '规模' add_column :educode_sales_activities, :address, :string, comment: '会议地点' add_column :educode_sales_activities, :meeting_form, :string, comment: '会议形式' add_column :educode_sales_activities, :last_follow_up_id, :integer, comment: '最新跟进' EducodeSales::Permission.find_or_create_by(name: '添加跟进记录', subject: 'ActivityFollowUp', action: 'create', clazz: 'activity') EducodeSales::Permission.find_or_create_by(name: '团队建议', subject: 'ActivityFollowUp', action: 'advise', clazz: 'activity') # EducodeSales::Permission.find_or_create_by(name: '附件', subject: 'ActivityFollowUp', action: 'upload', clazz: 'activity') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
educode_sales-0.9.67 | db/migrate/20230330141213_create_educode_sales_activity_follow_ups.rb |