Class: Rabarber::RolesGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Rabarber::RolesGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/rabarber/roles_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(_path) ⇒ Object
19 20 21 |
# File 'lib/generators/rabarber/roles_generator.rb', line 19 def self.next_migration_number(_path) Time.now.utc.strftime("%Y%m%d%H%M%S") end |
Instance Method Details
#create_migrations ⇒ Object
15 16 17 |
# File 'lib/generators/rabarber/roles_generator.rb', line 15 def create_migrations migration_template "create_rabarber_roles.rb.erb", "db/migrate/create_rabarber_roles.rb" end |