Sha256: 8a2462d1a6d326a0954c59ca7026da5b0a2680fedd629c53d3baa56223c8fbb7

Contents?: true

Size: 655 Bytes

Versions: 8

Compression:

Stored size: 655 Bytes

Contents

class CreateEcomCoreTasks < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_core_tasks do |t|
      t.string :code, null: false
      t.string :name, null: false
      t.string :description
      t.string :ancestry
      t.references :project,
                   null: false,
                   index: { name: 'tasks_on_project_indx' },
                   foreign_key: { to_table: :ecom_core_projects }
      t.references :task_template,
                   null: false,
                   index: { name: 'tt_on_project_indx' },
                   foreign_key: { to_table: :ecom_core_task_templates }

      t.timestamps
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ecom_core-1.2.14 db/migrate/20191202103735_create_ecom_core_tasks.rb
ecom_core-1.2.13 db/migrate/20191202103735_create_ecom_core_tasks.rb
ecom_core-1.2.12 db/migrate/20191202103735_create_ecom_core_tasks.rb
ecom_core-1.2.11 db/migrate/20191202103735_create_ecom_core_tasks.rb
ecom_core-1.2.10 db/migrate/20191202103735_create_ecom_core_tasks.rb
ecom_core-1.2.9 db/migrate/20191202103735_create_ecom_core_tasks.rb
ecom_core-1.2.7 db/migrate/20191202103735_create_ecom_core_tasks.rb
ecom_core-1.2.6 db/migrate/20191202103735_create_ecom_core_tasks.rb