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.26 db/migrate/20230306131055_add_score_to_assessments_settings.rb
educode_sales-1.10.25 db/migrate/20230306131055_add_score_to_assessments_settings.rb
educode_sales-1.10.24 db/migrate/20230306131055_add_score_to_assessments_settings.rb
educode_sales-1.10.23 db/migrate/20230306131055_add_score_to_assessments_settings.rb
educode_sales-1.10.22 db/migrate/20230306131055_add_score_to_assessments_settings.rb
educode_sales-1.10.21 db/migrate/20230306131055_add_score_to_assessments_settings.rb
educode_sales-1.10.20 db/migrate/20230306131055_add_score_to_assessments_settings.rb
educode_sales-1.10.19 db/migrate/20230306131055_add_score_to_assessments_settings.rb
educode_sales-1.10.18 db/migrate/20230306131055_add_score_to_assessments_settings.rb
educode_sales-1.10.17 db/migrate/20230306131055_add_score_to_assessments_settings.rb
educode_sales-1.10.16 db/migrate/20230306131055_add_score_to_assessments_settings.rb
educode_sales-1.10.15 db/migrate/20230306131055_add_score_to_assessments_settings.rb
educode_sales-1.10.14 db/migrate/20230306131055_add_score_to_assessments_settings.rb
educode_sales-1.10.13 db/migrate/20230306131055_add_score_to_assessments_settings.rb
educode_sales-1.10.12 db/migrate/20230306131055_add_score_to_assessments_settings.rb
educode_sales-1.10.11 db/migrate/20230306131055_add_score_to_assessments_settings.rb
educode_sales-1.10.10 db/migrate/20230306131055_add_score_to_assessments_settings.rb
educode_sales-1.10.9 db/migrate/20230306131055_add_score_to_assessments_settings.rb
educode_sales-1.10.8 db/migrate/20230306131055_add_score_to_assessments_settings.rb
educode_sales-1.10.7 db/migrate/20230306131055_add_score_to_assessments_settings.rb