Sha256: d6e9908b33cb6964c4ffb3584bde287438c6275541527d952679719f0360b4d1
Contents?: true
Size: 658 Bytes
Versions: 1
Compression:
Stored size: 658 Bytes
Contents
require "active_record/rollout" require "rails/generators" require "rails/generators/active_record" class ActiveRecordRolloutGenerator < Rails::Generators::Base include Rails::Generators::Migration extend ActiveRecord::Generators::Migration source_root File.expand_path("../templates", __FILE__) desc "Creates migration for ActiveRecord::Rollout" def create_migration_file migration_template "migration.rb", "db/migrate/setup_active_record_rollout.rb" end desc "Sets up an initializer for ActiveRecord::Rollout" def create_initializer copy_file "active_record_rollout.rb", "config/initializers/active_record_rollout.rb" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_record_rollout-0.0.1 | lib/generators/active_record_rollout_generator.rb |