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

Version Path
perfect_money_merchant-0.1.2 lib/generators/perfect_money_merchant/perfect_money_merchant_generator.rb
perfect_money_merchant-0.1.1.alpha.1 lib/generators/perfect_money_merchant/perfect_money_merchant_generator.rb
perfect_money_merchant-0.1.0.alpha.4 lib/generators/perfect_money_merchant/perfect_money_merchant_generator.rb
perfect_money_merchant-0.1.0.alpha.3 lib/generators/perfect_money_merchant/perfect_money_merchant_generator.rb