Sha256: e896495271d404427d096c91519da28d012eb218c1a9f94261c581ab22de2aa9

Contents?: true

Size: 510 Bytes

Versions: 36

Compression:

Stored size: 510 Bytes

Contents

class CreateAdmissionSpecialties < ActiveRecord::Migration[5.2]
  def change
    within_renalware_schema do
      create_table :admission_specialties do |t|
        t.string :name, null: false, index: { unique: true }
        t.integer :position, null: false, default: 0
        t.timestamps null: false
      end

      add_reference(
        :admission_consults,
        :specialty,
        foreign_key: { to_table: :admission_specialties },
        index: true,
        null: true
      )
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
renalware-core-2.1.1 db/migrate/20200110160241_create_admission_specialties.rb
renalware-core-2.1.0 db/migrate/20200110160241_create_admission_specialties.rb
renalware-core-2.0.167 db/migrate/20200110160241_create_admission_specialties.rb
renalware-core-2.0.166 db/migrate/20200110160241_create_admission_specialties.rb
renalware-core-2.0.165 db/migrate/20200110160241_create_admission_specialties.rb
renalware-core-2.0.164 db/migrate/20200110160241_create_admission_specialties.rb
renalware-core-2.0.163 db/migrate/20200110160241_create_admission_specialties.rb
renalware-core-2.0.162 db/migrate/20200110160241_create_admission_specialties.rb
renalware-core-2.0.161 db/migrate/20200110160241_create_admission_specialties.rb
renalware-core-2.0.160 db/migrate/20200110160241_create_admission_specialties.rb
renalware-core-2.0.159 db/migrate/20200110160241_create_admission_specialties.rb
renalware-core-2.0.158 db/migrate/20200110160241_create_admission_specialties.rb
renalware-core-2.0.157 db/migrate/20200110160241_create_admission_specialties.rb
renalware-core-2.0.156 db/migrate/20200110160241_create_admission_specialties.rb
renalware-core-2.0.155 db/migrate/20200110160241_create_admission_specialties.rb
renalware-core-2.0.153 db/migrate/20200110160241_create_admission_specialties.rb
renalware-core-2.0.152 db/migrate/20200110160241_create_admission_specialties.rb
renalware-core-2.0.151 db/migrate/20200110160241_create_admission_specialties.rb
renalware-core-2.0.149 db/migrate/20200110160241_create_admission_specialties.rb
renalware-core-2.0.148 db/migrate/20200110160241_create_admission_specialties.rb