Class: Strongbolt::Generators::FixUniqueGroupMembersGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Migration
Defined in:
lib/generators/strongbolt/fix_unique_group_members_generator.rb

Overview

Creates a migration to add an unique index to user_groups_users, so that a user can only exist once in a group.

Instance Method Summary collapse

Methods included from Migration

included

Instance Method Details

#copy_fixObject



14
15
16
# File 'lib/generators/strongbolt/fix_unique_group_members_generator.rb', line 14

def copy_fix
  copy_migration 'fix_unique_group_members', 'fix_unique_group_members'
end