Sha256: 905acf3c8fa7efa42d25d5182cc2f7884e0520cb8e9bb6b6552e4aa88439596a

Contents?: true

Size: 450 Bytes

Versions: 5

Compression:

Stored size: 450 Bytes

Contents

class CreateEcomModelResourceTypes < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_model_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_model_resource_types, %i[code type], unique: true
    add_index :ecom_model_resource_types, %i[name type], unique: true
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecom_model-2.0.4 db/migrate/20191119145711_create_ecom_model_resource_types.rb
ecom_model-2.0.3 db/migrate/20191119145711_create_ecom_model_resource_types.rb
ecom_model-2.0.2 db/migrate/20191119145711_create_ecom_model_resource_types.rb
ecom_model-2.0.1 db/migrate/20191119145711_create_ecom_model_resource_types.rb
ecom_model-2.0.0 db/migrate/20191119145711_create_ecom_model_resource_types.rb