Sha256: d7c7ac2404a0ca6edfc8931cbe058e9a5cb156ce1290d5b1755404a4339523bb
Contents?: true
Size: 408 Bytes
Versions: 4
Compression:
Stored size: 408 Bytes
Contents
class CreateMksEdmEquipmentComponents < ActiveRecord::Migration[5.1] def change create_table :mks_edm_equipment_components do |t| t.string :serial_no t.string :name, null: false t.references :equipment_item, index: { name: 'ei_on_ec_indx' } t.timestamps end add_foreign_key :mks_edm_equipment_components, :mks_edm_equipment_items, column: :equipment_item_id end end
Version data entries
4 entries across 4 versions & 1 rubygems