lib/generators/cms/migration_generator.rb in honey-cms-0.3.13 vs lib/generators/cms/migration_generator.rb in honey-cms-0.4.0
- old
+ new
@@ -8,9 +8,10 @@
def create_migration_file
if options[:only].present?
migration_template 'migration.rb', "db/migrate/create_#{options[:only].underscore.pluralize}"
else
+ @migration_types = CMS::Configuration.scoped_types(options)
migration_template 'migration.rb', 'db/migrate/create_cms'
end
end
end