Sha256: 9384c9829cb9248f97b53978a014fc8f64463a424792923bdfcf7dd06ca64646
Contents?: true
Size: 575 Bytes
Versions: 113
Compression:
Stored size: 575 Bytes
Contents
class CreateTaskGroups < ActiveRecord::Migration[4.2] 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
113 entries across 113 versions & 1 rubygems