Sha256: 9a12835cbbbe5b57707ee9636721e156741ebb485491fef54e29c894af61ca0d
Contents?: true
Size: 716 Bytes
Versions: 3
Compression:
Stored size: 716 Bytes
Contents
require 'rails/generators/active_record' module ActiveRecord module Generators class MeritGenerator < ActiveRecord::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) desc 'add active_record merit migrations' def self.next_migration_number(path) ActiveRecord::Generators::Base.next_migration_number(path) end def copy_migrations_and_model migration_template 'add_merit_fields_to_model.rb', "db/migrate/add_merit_fields_to_#{table_name}.rb" end def migration_version "[#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}]" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
merit-3.0.3 | lib/generators/active_record/merit_generator.rb |
merit-3.0.2 | lib/generators/active_record/merit_generator.rb |
merit-3.0.1 | lib/generators/active_record/merit_generator.rb |