Class: DynamoDB::Migration::Execute
- Inherits:
-
Object
- Object
- DynamoDB::Migration::Execute
- Defined in:
- lib/dynamodb/migration/execute.rb
Constant Summary collapse
- DEFAULT_MIGRATION_TABLE_NAME =
'migrations'
Instance Method Summary collapse
-
#initialize(client, migration_table_name, tags) ⇒ Execute
constructor
A new instance of Execute.
- #update_all ⇒ Object
Constructor Details
#initialize(client, migration_table_name, tags) ⇒ Execute
Returns a new instance of Execute.
6 7 8 9 10 |
# File 'lib/dynamodb/migration/execute.rb', line 6 def initialize(client, migration_table_name, ) @client = client @migration_table_name = migration_table_name @tags = end |
Instance Method Details
#update_all ⇒ Object
12 13 14 15 16 17 |
# File 'lib/dynamodb/migration/execute.rb', line 12 def update_all ensure_migrations_table_exists migration_classes.each do |clazz| apply_migration(clazz) end end |