lib/generators/sandboxy_generator.rb in sandboxy-3.0.1 vs lib/generators/sandboxy_generator.rb in sandboxy-3.0.2
- old
+ new
@@ -11,10 +11,11 @@
def self.next_migration_number(dirname)
if ActiveRecord::Base.timestamped_migrations
Time.now.utc.strftime('%Y%m%d%H%M%S')
else
- format('%.3d', current_migration_number(dirname) + 1)
+ format('%<migration_number>.3d',
+ migration_number: current_migration_number(dirname) + 1)
end
end
def create_initializer
template 'initializer.rb', 'config/initializers/sandboxy.rb'