Class: ArRolloutGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Extended by:
ActiveRecord::Generators::Migration
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/ar_rollout_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_initializer_fileObject



11
12
13
14
15
16
# File 'lib/generators/ar_rollout_generator.rb', line 11

def copy_initializer_file
  copy_file "ar_rollout.rb", "config/initializers/ar_rollout.rb"
  migration_template "migration.rb", "db/migrate/create_rollout"
  migration_template "groups_migration.rb", "db/migrate/create_groups_and_groups_users"
  migration_template "opt_outs_migration.rb", "db/migrate/create_opt_outs"
end