Sha256: 3a13710058ae81579aa8be57d570a9c57133ef8840fc96ee89dfd57e62e2e306

Contents?: true

Size: 508 Bytes

Versions: 228

Compression:

Stored size: 508 Bytes

Contents

class CreateEducodeSalesCourseSubjects < ActiveRecord::Migration[5.2]
  def change
    create_table :educode_sales_course_subjects do |t|
      t.references :teacher
      t.string :name
      t.string :role_name

      t.timestamps
    end
    add_column :educode_sales_teachers, :course_subjects_count, :integer, default: 0
    add_column :educode_sales_teachers, :teacher_follows_count, :integer, default: 0
    add_column :educode_sales_teachers, :activity_teachers_count, :integer, default: 0
  end
end

Version data entries

228 entries across 228 versions & 1 rubygems

Version Path
educode_sales-1.10.26 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-1.10.25 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-1.10.24 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-1.10.23 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-1.10.22 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-1.10.21 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-1.10.20 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-1.10.19 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-1.10.18 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-1.10.17 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-1.10.16 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-1.10.15 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-1.10.14 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-1.10.13 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-1.10.12 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-1.10.11 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-1.10.10 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-1.10.9 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-1.10.8 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-1.10.7 db/migrate/20210913071607_create_educode_sales_course_subjects.rb