Sha256: b8ddb224a95487d1e152a942224d76bfac832d155031e908ed3bbaf4a3ee28e9

Contents?: true

Size: 419 Bytes

Versions: 171

Compression:

Stored size: 419 Bytes

Contents

class CreateHDStationLocations < ActiveRecord::Migration[5.1]
  def change
    create_table :hd_station_locations do |t|
      t.string :name, null: false, index: :unique
      t.string :colour, null: false
    end

    remove_column :hd_stations, :location, :string
    add_column :hd_stations, :location_id, :integer, null: true
    add_foreign_key :hd_stations, :hd_station_locations, column: :location_id
  end
end

Version data entries

171 entries across 171 versions & 1 rubygems

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