Class: Shibbolite::Generators::MigrationGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/shibbolite/migration_generator.rb

Instance Method Summary collapse

Instance Method Details

#creat_migrationObject



8
9
10
11
# File 'lib/generators/shibbolite/migration_generator.rb', line 8

def creat_migration
  generate "migration AddShibbolethAttributesTo#{Shibbolite.user_table_name} group:string" <<
               Shibbolite.attributes.collect { |attr| " #{attr}:string" }.join
end