Sha256: 321e5494a6585ab6371eaa243045d1906496e0e44859f48bb7bb5c0f98d72f23

Contents?: true

Size: 414 Bytes

Versions: 10

Compression:

Stored size: 414 Bytes

Contents

class CreateSisCoreSemesters < ActiveRecord::Migration[6.0]
  def change
    create_table :sis_core_semesters do |t|
      t.string :name, null: false
      t.string :description
      t.references :academic_year,
                   index: { name: 'ay_on_semester_indx' },
                   null: false,
                   foreign_key: { to_table: :sis_core_academic_years }

      t.timestamps
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sis_core-1.0.12 db/migrate/20200106072246_create_sis_core_semesters.rb
sis_core-1.0.11 db/migrate/20200106072246_create_sis_core_semesters.rb
sis_core-1.0.10 db/migrate/20200106072246_create_sis_core_semesters.rb
sis_core-1.0.9 db/migrate/20200106072246_create_sis_core_semesters.rb
sis_core-1.0.8 db/migrate/20200106072246_create_sis_core_semesters.rb
sis_core-1.0.7 db/migrate/20200106072246_create_sis_core_semesters.rb
sis_core-1.0.6 db/migrate/20200106072246_create_sis_core_semesters.rb
sis_core-1.0.5 db/migrate/20200106072246_create_sis_core_semesters.rb
sis_core-1.0.4 db/migrate/20200106072246_create_sis_core_semesters.rb
sis_core-1.0.3 db/migrate/20200307072246_create_sis_core_semesters.rb