Sha256: f49a924f1de4b3b5e9644680092cc5c67b07cd5cc54808d49fadc1d54e61b7e7
Contents?: true
Size: 956 Bytes
Versions: 6
Compression:
Stored size: 956 Bytes
Contents
require 'rails/generators/active_record' module ActiveRecord module Generators class InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) desc "add active_record merit migrations for the root objects" def self.next_migration_number(path) ActiveRecord::Generators::Base.next_migration_number(path) end def copy_migrations_and_model migration_template 'create_merit_actions.rb', 'db/migrate/create_merit_actions.rb' migration_template 'create_merit_activity_logs.rb', 'db/migrate/create_merit_activity_logs.rb' migration_template 'create_sashes.rb', 'db/migrate/create_sashes.rb' migration_template 'create_badges_sashes.rb', 'db/migrate/create_badges_sashes.rb' migration_template 'create_scores_and_points.rb', 'db/migrate/create_scores_and_points.rb' end end end end
Version data entries
6 entries across 6 versions & 1 rubygems