Class: DynamoDb::Generators::SessionStoreMigrationGenerator Private
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- DynamoDb::Generators::SessionStoreMigrationGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/dynamo_db/session_store_migration/session_store_migration_generator.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Generates an ActiveRecord migration that creates and deletes a DynamoDB Session table.
Class Method Summary collapse
-
.next_migration_number(_dir = nil) ⇒ Object
private
Next migration number - must be implemented.
Instance Method Summary collapse
Class Method Details
.next_migration_number(_dir = nil) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Next migration number - must be implemented
29 30 31 |
# File 'lib/generators/dynamo_db/session_store_migration/session_store_migration_generator.rb', line 29 def self.next_migration_number(_dir = nil) Time.now.utc.strftime('%Y%m%d%H%M%S') end |
Instance Method Details
#generate_migration_file ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21 22 23 24 25 26 |
# File 'lib/generators/dynamo_db/session_store_migration/session_store_migration_generator.rb', line 21 def generate_migration_file migration_template( 'session_store_migration.erb', "db/migrate/#{name.underscore}.rb" ) end |