Class: Strongbolt::Generators::FixUniqueGroupMembersGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Strongbolt::Generators::FixUniqueGroupMembersGenerator
- 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
Instance Method Details
#copy_fix ⇒ Object
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 |