Sha256: bacc7024ffadd8ebea880541c301dcf23a74ba31b3049dd857b0f85c86b23f5f

Contents?: true

Size: 463 Bytes

Versions: 4

Compression:

Stored size: 463 Bytes

Contents

class CreateMksEdmEquipmentLocations < ActiveRecord::Migration[5.1]
  def change
    create_table :mks_edm_equipment_locations do |t|
      t.string :code, unique: true
      t.string :name, null: false
      t.references :location_type, index: { name: 'lt_on_el_indx' }
      t.string :description
      t.string :address

      t.timestamps
    end

    add_foreign_key :mks_edm_equipment_locations, :mks_edm_location_types, column: :location_type_id
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mks_edm-1.0.5 db/migrate/20171215081601_create_mks_edm_equipment_locations.rb
mks_edm-1.0.4 db/migrate/20171215081601_create_mks_edm_equipment_locations.rb
mks_edm-1.0.2 db/migrate/20171215081601_create_mks_edm_equipment_locations.rb
mks_edm-1.0.1 db/migrate/20171215081601_create_mks_edm_equipment_locations.rb