Sha256: 203efa570b9fe92507fa0b3a298527c29746f5d2e9822b799c6c70823ed7db89
Contents?: true
Size: 547 Bytes
Versions: 38
Compression:
Stored size: 547 Bytes
Contents
class CreateEcomCoreEquipmentCategories < ActiveRecord::Migration[6.0] def change create_table :ecom_core_equipment_categories do |t| t.string :name, null: false t.string :description t.references :equipment_type, null: false, index: { name: 'et_on_ecec_indx' } t.timestamps end add_index :ecom_core_equipment_categories, %i[name equipment_type_id], unique: true, name: 'ecec_name_et_indx' add_foreign_key :ecom_core_equipment_categories, :ecom_core_resource_types, column: :equipment_type_id end end
Version data entries
38 entries across 38 versions & 1 rubygems