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