Sha256: ae9287145910d9dfb23d99b4951bb268fee9fbf60dc504647e3f68257003e55d
Contents?: true
Size: 424 Bytes
Versions: 3
Compression:
Stored size: 424 Bytes
Contents
module Cm module Generators class MigrationGenerator < Rails::Generators::NamedBase include Rails::Generators::Migration def self.next_migration_number(dirname) Time.now.utc.strftime("%Y%m%d%H%M%S") end source_root File.expand_path('../templates', __FILE__) def create_migration_file migration_template "template.rb", "cm/migrate/#{file_name}" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems