Sha256: 65e77bb567eb21aeb27d986c08ac6e12d52b594858e82314feaf3db81b05a852
Contents?: true
Size: 695 Bytes
Versions: 177
Compression:
Stored size: 695 Bytes
Contents
class CreateModalities < ActiveRecord::Migration[4.2] def change create_table :modality_modalities do |t| t.references :patient, null: false, foreign_key: true t.belongs_to :description, null: false, index: true t.belongs_to :reason, index: true t.string :modal_change_type t.text :notes t.date :started_on, null: false t.date :ended_on t.string :state, null: false, default: "current" t.timestamps null: false end add_foreign_key :modality_modalities, :modality_descriptions, column: :description_id add_foreign_key :modality_modalities, :modality_reasons, column: :reason_id end end
Version data entries
177 entries across 177 versions & 1 rubygems