Sha256: d9a0d00fe804ae51e224977fa708bb85ff7f067976c359eec52ea88c7a3dbfdf

Contents?: true

Size: 454 Bytes

Versions: 69

Compression:

Stored size: 454 Bytes

Contents

class CreateConsultSites < ActiveRecord::Migration[5.1]
  def change
    create_table :admission_consult_sites do |t|
      t.string :name, index: :unique
    end

    remove_column :admission_consults, :hospital_unit_id
    add_column :admission_consults, :other_site_or_ward, :string
    add_reference :admission_consults,
                  :consult_site,
                  references: :admission_consult_sites,
                  index: true
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
renalware-core-2.0.64 db/migrate/20171204112150_create_consult_sites.rb
renalware-core-2.0.63 db/migrate/20171204112150_create_consult_sites.rb
renalware-core-2.0.62 db/migrate/20171204112150_create_consult_sites.rb
renalware-core-2.0.61 db/migrate/20171204112150_create_consult_sites.rb
renalware-core-2.0.60 db/migrate/20171204112150_create_consult_sites.rb
renalware-core-2.0.58 db/migrate/20171204112150_create_consult_sites.rb
renalware-core-2.0.57 db/migrate/20171204112150_create_consult_sites.rb
renalware-core-2.0.56 db/migrate/20171204112150_create_consult_sites.rb
renalware-core-2.0.55 db/migrate/20171204112150_create_consult_sites.rb
renalware-core-2.0.54 db/migrate/20171204112150_create_consult_sites.rb
renalware-core-2.0.53 db/migrate/20171204112150_create_consult_sites.rb
renalware-core-2.0.52 db/migrate/20171204112150_create_consult_sites.rb
renalware-core-2.0.51 db/migrate/20171204112150_create_consult_sites.rb
renalware-core-2.0.50 db/migrate/20171204112150_create_consult_sites.rb
renalware-core-2.0.48 db/migrate/20171204112150_create_consult_sites.rb
renalware-core-2.0.47 db/migrate/20171204112150_create_consult_sites.rb
renalware-core-2.0.46 db/migrate/20171204112150_create_consult_sites.rb
renalware-core-2.0.45 db/migrate/20171204112150_create_consult_sites.rb
renalware-core-2.0.44 db/migrate/20171204112150_create_consult_sites.rb
renalware-core-2.0.43 db/migrate/20171204112150_create_consult_sites.rb