Sha256: 1faa7a1b56f5d2e072da1f5ca9af013adcb048ccaa95e7790e234ee9afdcb2cd
Contents?: true
Size: 886 Bytes
Versions: 5
Compression:
Stored size: 886 Bytes
Contents
class CreateEcomCoreEquipmentItems < ActiveRecord::Migration[6.0] def change create_table :ecom_core_equipment_items do |t| t.string :name, null: false t.string :description t.string :status, null: false t.string :serial_number, unique: true t.string :brand t.string :item_model t.float :purchase_price, null: false t.date :purchase_date, null: false t.float :license_fee t.float :tax t.references :equipment, null: false, index: { name: 'equipment_on_ei_indx' }, foreign_key: { to_table: :ecom_core_equipment } t.references :current_location, null: false, index: { name: 'equipment_on_el_indx' }, foreign_key: { to_table: :ecom_core_equipment_locations } t.timestamps end end end
Version data entries
5 entries across 5 versions & 1 rubygems