Sha256: 97f2fc9e99de0e4145ada01c656ad35448548dd8c16823688423780b4c014a41

Contents?: true

Size: 380 Bytes

Versions: 5

Compression:

Stored size: 380 Bytes

Contents

class CreateEcomModelTaskTemplateTypes < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_model_task_template_types do |t|
      t.string :code, null: false
      t.string :name, null: false

      t.timestamps
    end

    add_index :ecom_model_task_template_types, :code, unique: true
    add_index :ecom_model_task_template_types, :name, unique: true
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecom_model-2.0.4 db/migrate/20191119010518_create_ecom_model_task_template_types.rb
ecom_model-2.0.3 db/migrate/20191119010518_create_ecom_model_task_template_types.rb
ecom_model-2.0.2 db/migrate/20191119010518_create_ecom_model_task_template_types.rb
ecom_model-2.0.1 db/migrate/20191119010518_create_ecom_model_task_template_types.rb
ecom_model-2.0.0 db/migrate/20191119010518_create_ecom_model_task_template_types.rb