Sha256: b82ae72e44faca2379405ab382fcadf531a3ca4e05ae45f583961a583527f9e1

Contents?: true

Size: 570 Bytes

Versions: 37

Compression:

Stored size: 570 Bytes

Contents

class CreateTaskGroups < ActiveRecord::Migration
  def up
    create_table :foreman_tasks_task_groups do |t|
      t.string :type, index: true, null: false
    end

    create_table :foreman_tasks_task_group_members do |t|
      t.string :task_id, null: false
      t.integer :task_group_id, null: false
    end

    add_index :foreman_tasks_task_group_members, [:task_id, :task_group_id], unique: true, name: 'foreman_tasks_task_group_members_index'
  end

  def down
    drop_table :foreman_tasks_task_groups
    drop_table :foreman_tasks_task_group_members
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
foreman-tasks-0.8.2 db/migrate/20150907131503_create_task_groups.rb
foreman-tasks-0.8.1 db/migrate/20150907131503_create_task_groups.rb
foreman-tasks-0.8.0 db/migrate/20150907131503_create_task_groups.rb
foreman-tasks-0.7.20 db/migrate/20150907131503_create_task_groups.rb
foreman-tasks-0.7.19 db/migrate/20150907131503_create_task_groups.rb
foreman-tasks-0.7.18 db/migrate/20150907131503_create_task_groups.rb
foreman-tasks-0.7.17 db/migrate/20150907131503_create_task_groups.rb
foreman-tasks-0.7.16 db/migrate/20150907131503_create_task_groups.rb
foreman-tasks-0.7.15 db/migrate/20150907131503_create_task_groups.rb
foreman-tasks-0.7.14 db/migrate/20150907131503_create_task_groups.rb
foreman-tasks-0.7.13 db/migrate/20150907131503_create_task_groups.rb
foreman-tasks-0.7.12 db/migrate/20150907131503_create_task_groups.rb
foreman-tasks-0.7.11 db/migrate/20150907131503_create_task_groups.rb
foreman-tasks-0.7.10 db/migrate/20150907131503_create_task_groups.rb
foreman-tasks-0.7.9 db/migrate/20150907131503_create_task_groups.rb
foreman-tasks-0.7.8 db/migrate/20150907131503_create_task_groups.rb
foreman-tasks-0.7.7 db/migrate/20150907131503_create_task_groups.rb