Class: Stitches::AddEnabledToApiClientsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Stitches::AddEnabledToApiClientsGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/stitches/add_enabled_to_api_clients_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(path) ⇒ Object
9 10 11 |
# File 'lib/stitches/add_enabled_to_api_clients_generator.rb', line 9 def self.next_migration_number(path) Time.now.utc.strftime("%Y%m%d%H%M%S") end |
Instance Method Details
#update_api_clients_table ⇒ Object
14 15 16 |
# File 'lib/stitches/add_enabled_to_api_clients_generator.rb', line 14 def update_api_clients_table migration_template "db/migrate/add_enabled_to_api_clients.rb", "db/migrate/add_enabled_to_api_clients.rb" end |