Sha256: e581b4c77f8395ce49003f769c8cc5890ebdae5f9481c79a68cd7c67926d76a2
Contents?: true
Size: 446 Bytes
Versions: 106
Compression:
Stored size: 446 Bytes
Contents
class CreateEcomCoreResourceTypes < ActiveRecord::Migration[6.0] def change create_table :ecom_core_resource_types do |t| t.string :code, null: false t.string :name, null: false t.string :base_unit, null: false t.string :type, null: false t.timestamps end add_index :ecom_core_resource_types, %i[code type], unique: true add_index :ecom_core_resource_types, %i[name type], unique: true end end
Version data entries
106 entries across 106 versions & 1 rubygems