Class: AuthAssist::RoleMigrations::RolesMask

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/role_migrations.rb

Instance Attribute Summary

Attributes inherited from Base

#generator

Instance Method Summary collapse

Methods inherited from Base

#generate_reverse_migration, #initialize, #setup

Methods included from MigrationHelper

#copy_migration, #file_reverse, #find_migration, included, #migration, #migration_dir, #migration_exists?, #reverse_migration, #reverse_migration_methods

Methods included from MigrationHelper::CodeRefactor

#clear_user_relations, #erase_in_user, #has_role_assignments, #has_roles, #has_roles_through_assignments, #insert_user_relation, #remove_user_relation, #role_assignment_file_content, #role_file_content, #write_model_file

Constructor Details

This class inherits a constructor from AuthAssist::RoleMigrations::Base

Instance Method Details

#migration_namesObject



76
77
78
# File 'lib/generators/role_migrations.rb', line 76

def migration_names
  ['add_roles_mask_to_user']      
end

#run_migrationObject



80
81
82
# File 'lib/generators/role_migrations.rb', line 80

def run_migration
  migration "#{roles_mask_migration_name} roles_mask:integer"
end