class DynamoDb::Generators::SessionStoreMigrationGenerator
Session table.
Generates an ActiveRecord migration that creates and deletes a DynamoDB
def self.next_migration_number(_dir = nil)
def self.next_migration_number(_dir = nil) Time.now.utc.strftime('%Y%m%d%H%M%S') end
def copy_sample_config_file
def copy_sample_config_file template( 'dynamo_db_session_store.yml', 'config/dynamo_db_session_store.yml' ) end
def generate_migration_file
-
(Rails Migration File)
- migration file for creation and deletion
def generate_migration_file migration_template( 'session_store_migration.rb', "db/migrate/#{name.underscore}.rb" ) end
def migration_version
-
(String)
- activerecord migration version
def migration_version "#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}" end