Sha256: 7f8f352bee349c30342c1eefd8196e364efe807aef06cd0bb0a9d6e58641c866

Contents?: true

Size: 746 Bytes

Versions: 228

Compression:

Stored size: 746 Bytes

Contents

class CreateEducodeSalesMoneyPlans < ActiveRecord::Migration[5.2]
  def change
    create_table :educode_sales_money_plans do |t|
      t.datetime :date_at, comment: '回款日期'
      t.float :amount, comment: '回款金额'
      t.integer :clazz, comment: '状态'
      t.references :staff, comment: ''
      t.references :follow_up

      t.timestamps
    end
    add_column :educode_sales_follow_ups, :money_plans_count, :integer, default: 0
    add_column :educode_sales_follow_ups, :teachers_count, :integer, default: 0
    add_column :educode_sales_businesses, :follow_ups_count, :integer, default: 0
    add_column :educode_sales_teachers, :follow_up_id, :integer
    remove_column :educode_sales_places, :area_id, :integer
  end
end

Version data entries

228 entries across 228 versions & 1 rubygems

Version Path
educode_sales-1.10.74 db/migrate/20210906104001_create_educode_sales_money_plans.rb
educode_sales-1.10.73 db/migrate/20210906104001_create_educode_sales_money_plans.rb
educode_sales-1.10.72 db/migrate/20210906104001_create_educode_sales_money_plans.rb
educode_sales-1.10.71 db/migrate/20210906104001_create_educode_sales_money_plans.rb
educode_sales-1.10.70 db/migrate/20210906104001_create_educode_sales_money_plans.rb
educode_sales-1.10.59 db/migrate/20210906104001_create_educode_sales_money_plans.rb
educode_sales-1.10.58 db/migrate/20210906104001_create_educode_sales_money_plans.rb
educode_sales-1.10.49 db/migrate/20210906104001_create_educode_sales_money_plans.rb
educode_sales-1.10.48 db/migrate/20210906104001_create_educode_sales_money_plans.rb
educode_sales-1.10.46 db/migrate/20210906104001_create_educode_sales_money_plans.rb
educode_sales-1.10.41 db/migrate/20210906104001_create_educode_sales_money_plans.rb
educode_sales-1.10.37 db/migrate/20210906104001_create_educode_sales_money_plans.rb
educode_sales-1.10.36 db/migrate/20210906104001_create_educode_sales_money_plans.rb
educode_sales-1.10.35 db/migrate/20210906104001_create_educode_sales_money_plans.rb
educode_sales-1.10.34 db/migrate/20210906104001_create_educode_sales_money_plans.rb
educode_sales-1.10.33 db/migrate/20210906104001_create_educode_sales_money_plans.rb
educode_sales-1.10.31 db/migrate/20210906104001_create_educode_sales_money_plans.rb
educode_sales-1.10.30 db/migrate/20210906104001_create_educode_sales_money_plans.rb
educode_sales-1.10.29 db/migrate/20210906104001_create_educode_sales_money_plans.rb
educode_sales-1.10.28 db/migrate/20210906104001_create_educode_sales_money_plans.rb