Class: OnlineMigrations::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
ActiveRecord::Generators::Migration
Defined in:
lib/generators/online_migrations/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_initializer_fileObject



13
14
15
# File 'lib/generators/online_migrations/install_generator.rb', line 13

def copy_initializer_file
  template("initializer.rb", "config/initializers/online_migrations.rb")
end

#create_migration_fileObject



17
18
19
# File 'lib/generators/online_migrations/install_generator.rb', line 17

def create_migration_file
  migration_template("install_migration.rb", File.join(db_migrate_path, "install_online_migrations.rb"))
end