Sha256: e219be49db00316ee47e716fb6115b7b854596fdf32070166d388e84020a8ac3
Contents?: true
Size: 553 Bytes
Versions: 4
Compression:
Stored size: 553 Bytes
Contents
class PerfectMoneyMerchantGenerator < Rails::Generators::Base include Rails::Generators::Migration def self.source_root @source_root ||= File.join(File.dirname(__FILE__), 'templates') end def self.next_migration_number(dirname) if ActiveRecord::Base.timestamped_migrations Time.new.utc.strftime("%Y%m%d%H%M%S") else "%.3d" % (current_migration_number(dirname) + 1) end end def create_migration_file migration_template 'migration.rb', 'db/migrate/create_perfect_money_merchant_accounts_and_account_units_and_payments.rb' end end
Version data entries
4 entries across 4 versions & 1 rubygems