Sha256: b5ecc3eda732ccfe85b63138e011afcc94883620e4809fa634b4b5a92654b09a
Contents?: true
Size: 672 Bytes
Versions: 1
Compression:
Stored size: 672 Bytes
Contents
class CreateEcomCoreEquipment < ActiveRecord::Migration[6.0] def change create_table :ecom_core_equipment do |t| t.string :name, null: false t.string :description t.float :minimum_acquisition_time, null: false, default: 0 t.string :brands, array: true, default: [] t.string :components, array: true, default: [] t.references :equipment_category, null: false, index: { name: 'ec_on_ece_indx' }, foreign_key: { to_table: :ecom_core_equipment_categories } t.timestamps end add_index :ecom_core_equipment, %i[name equipment_category_id], unique: true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ecom_core-1.2.12 | db/migrate/20200315152143_create_ecom_core_equipment.rb |