Sha256: 5217b4dfe4d536cafe877220fcd4274c22949530d00bedc508a69d4fd916c271

Contents?: true

Size: 444 Bytes

Versions: 4

Compression:

Stored size: 444 Bytes

Contents

class CreateMksEdmEquipmentCategories < ActiveRecord::Migration[5.1]
  def change
    create_table :mks_edm_equipment_categories do |t|
      t.string :code, unique: true
      t.string :name, null: false
      t.string :description
      t.references :equipment_type, index: { name: 'ec_on_et_indx' }

      t.timestamps
    end
    add_foreign_key :mks_edm_equipment_categories, :mks_edm_equipment_types, column: :equipment_type_id
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mks_edm-1.0.5 db/migrate/20171216041414_create_mks_edm_equipment_categories.rb
mks_edm-1.0.4 db/migrate/20171216041414_create_mks_edm_equipment_categories.rb
mks_edm-1.0.2 db/migrate/20171216041414_create_mks_edm_equipment_categories.rb
mks_edm-1.0.1 db/migrate/20171216041414_create_mks_edm_equipment_categories.rb