Sha256: a1bfd6b0f732269d32d97a34156ebeaf1d5de9895abdf45b95a36830604aed1d

Contents?: true

Size: 1.6 KB

Versions: 97

Compression:

Stored size: 1.6 KB

Contents

class AddScoreToAssessmentsSettings < ActiveRecord::Migration[5.2]
  def change
    add_column :educode_sales_assessments_settings, :first_quarter_score, :string
    add_column :educode_sales_assessments_settings, :january_score, :string
    add_column :educode_sales_assessments_settings, :february_score, :string
    add_column :educode_sales_assessments_settings, :march_score, :string
    add_column :educode_sales_assessments_settings, :second_quarter_score, :string
    add_column :educode_sales_assessments_settings, :april_score, :string
    add_column :educode_sales_assessments_settings, :may_score, :string
    add_column :educode_sales_assessments_settings, :june_score, :string
    add_column :educode_sales_assessments_settings, :third_quarter_score, :string
    add_column :educode_sales_assessments_settings, :july_score, :string
    add_column :educode_sales_assessments_settings, :august_score, :string
    add_column :educode_sales_assessments_settings, :september_score, :string
    add_column :educode_sales_assessments_settings, :fourth_quarter_score, :string
    add_column :educode_sales_assessments_settings, :october_score, :string
    add_column :educode_sales_assessments_settings, :november_score, :string
    add_column :educode_sales_assessments_settings, :december_score, :string


    add_column :educode_sales_assessments_settings, :total_score, :string
    add_column :educode_sales_assessments_settings, :cycle, :integer, default: 1

    EducodeSales::Permission.find_or_create_by(name: '合同管理', subject: 'Business', action: 'contract_business', clazz: 'business', position: '15')
  end
end

Version data entries

97 entries across 97 versions & 1 rubygems

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