Sha256: 2c6cfa142130000147b65d73317dd6252eaba00ecf6b756ec2f9ccec08aff8d9
Contents?: true
Size: 479 Bytes
Versions: 7
Compression:
Stored size: 479 Bytes
Contents
class Econfig::MigrationGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) 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_econfig.rb" end end
Version data entries
7 entries across 7 versions & 1 rubygems