Sha256: 337921d82ec661e27510bbce3250f6f007cfccea066a2dc0c82b67f0d9167304

Contents?: true

Size: 501 Bytes

Versions: 4

Compression:

Stored size: 501 Bytes

Contents

class CreateMksEdmEquipments < ActiveRecord::Migration[5.1]
  def change
    create_table :mks_edm_equipments do |t|
      t.string :code, unique: true
      t.string :name, null: false
      t.string :description
      t.float :minimum_acquisition_time, null: false, default: 0
      t.references :equipment_category, index: { name: 'equipment_on_ec_indx' }

      t.timestamps
    end

    add_foreign_key :mks_edm_equipments, :mks_edm_equipment_categories, column: :equipment_category_id
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mks_edm-1.0.5 db/migrate/20171216070855_create_mks_edm_equipments.rb
mks_edm-1.0.4 db/migrate/20171216070855_create_mks_edm_equipments.rb
mks_edm-1.0.2 db/migrate/20171216070855_create_mks_edm_equipments.rb
mks_edm-1.0.1 db/migrate/20171216070855_create_mks_edm_equipments.rb