Sha256: fbb90a2f9a09de69603c96ef5cad6cb8e0934d1bf7497c2eac5d1dad24900d9c
Contents?: true
Size: 696 Bytes
Versions: 4
Compression:
Stored size: 696 Bytes
Contents
class CreateSisCoreClassrooms < ActiveRecord::Migration[6.0] def change create_table :sis_core_classrooms do |t| t.references :building, null: false, index: { name: 'bldg_on_cls_rm' }, foreign_key: { to_table: :sis_core_buildings } t.references :programme_level, null: false, index: { name: 'pl_on_cls_rm' }, foreign_key: { to_table: :sis_core_lookups } t.float :square_meter t.string :room_number, null: false t.string :floor, null: false t.integer :class_size t.string :class_type, null: false t.timestamps end end end
Version data entries
4 entries across 4 versions & 1 rubygems