lib/generators/drafting/migration/migration_generator.rb in drafting-0.4.0 vs lib/generators/drafting/migration/migration_generator.rb in drafting-0.4.1
- old
+ new
@@ -7,10 +7,10 @@
desc 'Generates migration for Drafting'
source_root File.expand_path('../templates', __FILE__)
def create_migration_file
- migration_template 'migration.rb', 'db/migrate/drafting_migration'
+ migration_template 'migration.rb', 'db/migrate/drafting_migration.rb'
end
def self.next_migration_number(dirname)
if ActiveRecord::Base.timestamped_migrations
Time.now.utc.strftime("%Y%m%d%H%M%S")