Class: ActiveSnapshot::InstallGenerator

Inherits:
MigrationGenerator show all
Defined in:
lib/generators/active_snapshot/install/install_generator.rb

Constant Summary collapse

MIGRATION_NAME =
"create_snapshots_tables".freeze

Instance Method Summary collapse

Methods inherited from MigrationGenerator

next_migration_number

Instance Method Details

#create_migration_fileObject



10
11
12
13
14
15
16
17
# File 'lib/generators/active_snapshot/install/install_generator.rb', line 10

def create_migration_file
  add_migration(
    MIGRATION_NAME,
    { 
      table_options: table_options,
    }
  )
end