Sha256: 46dc65f1eba89ede3557691477112919e95a844b485572ff88dab4d0221c654f

Contents?: true

Size: 633 Bytes

Versions: 176

Compression:

Stored size: 633 Bytes

Contents

class CreateHDUnitStations < ActiveRecord::Migration[5.1]
  def change
    create_table :hd_stations do |t|
      t.references :hospital_unit, null: false, foreign_key: true, index: true
      t.integer :position, null: false, default: 0, index: true
      t.string :name
      t.string :location
      t.integer :updated_by_id, null: false, index: true
      t.integer :created_by_id, null: false, index: true
      t.datetime :deleted_at, index: true
      t.timestamps null: false
    end

    add_foreign_key :hd_stations, :users, column: :created_by_id
    add_foreign_key :hd_stations, :users, column: :updated_by_id
  end
end

Version data entries

176 entries across 176 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc9 db/migrate/20170830085137_create_hd_unit_stations.rb
renalware-core-2.0.0.pre.rc8 db/migrate/20170830085137_create_hd_unit_stations.rb
renalware-core-2.0.0.pre.rc7 db/migrate/20170830085137_create_hd_unit_stations.rb
renalware-core-2.0.0.pre.rc6 db/migrate/20170830085137_create_hd_unit_stations.rb
renalware-core-2.0.0.pre.rc5 db/migrate/20170830085137_create_hd_unit_stations.rb
renalware-core-2.0.0.pre.rc4 db/migrate/20170830085137_create_hd_unit_stations.rb
renalware-core-2.0.0.pre.rc3 db/migrate/20170830085137_create_hd_unit_stations.rb
renalware-core-2.0.0.pre.rc1 db/migrate/20170830085137_create_hd_unit_stations.rb
renalware-core-2.0.0.pre.beta12 db/migrate/20170830085137_create_hd_unit_stations.rb
renalware-core-2.0.0.pre.beta11 db/migrate/20170830085137_create_hd_unit_stations.rb
renalware-core-2.0.0.pre.beta10 db/migrate/20170830085137_create_hd_unit_stations.rb
renalware-core-2.0.0.pre.beta9 db/migrate/20170830085137_create_hd_unit_stations.rb
renalware-core-2.0.0.pre.beta8 db/migrate/20170830085137_create_hd_unit_stations.rb
renalware-core-2.0.0.pre.beta7 db/migrate/20170830085137_create_hd_unit_stations.rb
renalware-core-2.0.0.pre.beta6 db/migrate/20170830085137_create_hd_unit_stations.rb
renalware-core-2.0.0.pre.beta5 db/migrate/20170830085137_create_hd_unit_stations.rb