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-0.9.12 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-0.9.11 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-0.9.10 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-0.9.9 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-0.9.8 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-0.9.7 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-0.9.6 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-0.9.5 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-0.9.4 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-0.9.3 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-0.9.2 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-0.9.1 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-0.8.9 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-0.8.7 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-0.8.6 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-0.8.5 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-0.8.4 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-0.8.3 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-0.8.2 db/migrate/20210913071607_create_educode_sales_course_subjects.rb
educode_sales-0.8.1 db/migrate/20210913071607_create_educode_sales_course_subjects.rb