Sha256: 1938b94a8cfa7d2e3ae625d47a90784da6c390ac7b533d36cbc06631b608df15
Contents?: true
Size: 966 Bytes
Versions: 7
Compression:
Stored size: 966 Bytes
Contents
class CreateSisCoreApplications < ActiveRecord::Migration[6.0] def change create_table :sis_core_applications do |t| t.string :status, null: false, default: 'Draft' t.boolean :payment_made, null: false, default: false t.string :payment_information t.date :application_date t.references :applicant, null: false, index: { name: 'applications_on_applicant_indx' }, foreign_key: { to_table: :sis_core_applicants } t.references :academic_programme, null: false, index: { name: 'applications_on_ap_indx' }, foreign_key: { to_table: :sis_core_academic_programmes } t.references :application_setup, null: false, index: { name: 'application_setup_on_ap_indx' }, foreign_key: { to_table: :sis_core_application_setups } t.timestamps end end end
Version data entries
7 entries across 7 versions & 1 rubygems