class DynamoDb::Generators::SessionStoreMigrationGenerator

Session table.
Generates an ActiveRecord migration that creates and deletes a DynamoDB

def self.next_migration_number(_dir = nil)

Next migration number - must be implemented
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

Returns:
  • (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

Returns:
  • (String) - activerecord migration version
def migration_version
  "#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}"
end