Sha256: 280eaf6f056d326c0b828470b5fcbfcf42dbe358796426f4d30a6eda04813e76
Contents?: true
Size: 445 Bytes
Versions: 2
Compression:
Stored size: 445 Bytes
Contents
require 'rails/generators/named_base' require 'rails/generators/migration' class MongrationGenerator < Rails::Generators::NamedBase include Rails::Generators::Migration source_root File.join(File.dirname(__FILE__), 'mongrations', 'templates') def self.next_migration_number(dirname) Time.now.utc.strftime("%Y%m%d%H%M%S") end def create_mongration migration_template('mongration.rb', "db/mongrations/#{file_name}") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
leifcr-mongrations-0.1.7 | generators/mongrations_generator.rb |
leifcr-mongrations-0.1.6 | generators/mongrations_generator.rb |