Sha256: 96a8bcd90f4455cc276a0e7b645b320dc263da3097cef1939f06e2e01bad0e83
Contents?: true
Size: 603 Bytes
Versions: 6
Compression:
Stored size: 603 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_fields_to_model.rb', "db/migrate/add_fields_to_#{table_name}.rb" end end end end
Version data entries
6 entries across 6 versions & 1 rubygems