Sha256: f4ab2c4ae6f5f9c8dd6e616ee33afe6e24e21e43703e56ac66ae16b7cb0ea1c3
Contents?: true
Size: 866 Bytes
Versions: 38
Compression:
Stored size: 866 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' } t.references :current_location, null: false, index: { name: 'equipment_on_el_indx' } t.timestamps end add_foreign_key :ecom_core_equipment_items, :ecom_core_equipment, column: :equipment_id add_foreign_key :ecom_core_equipment_items, :ecom_core_equipment_locations, column: :current_location_id end end
Version data entries
38 entries across 38 versions & 1 rubygems