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