Class: OauthService::Generators::MigrationsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- OauthService::Generators::MigrationsGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/oauth_service/migrations_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(path) ⇒ Object
15 16 17 |
# File 'lib/generators/oauth_service/migrations_generator.rb', line 15 def self.next_migration_number(path) Time.now.utc.strftime("%Y%m%d%H%M%S") end |
Instance Method Details
#create_migrations ⇒ Object
11 12 13 |
# File 'lib/generators/oauth_service/migrations_generator.rb', line 11 def create_migrations migration_template "create_tables.rb", "db/migrate/create_tables.rb" end |