lib/generators/migration.rb in merb_sequel-0.9.6 vs lib/generators/migration.rb in merb_sequel-0.9.7
- old
+ new
@@ -1,4 +1,4 @@
-Merb::Generators::MigrationGenerator.template :migration_sequel, :orm => :sequel do
- source(File.dirname(__FILE__), 'templates/migration/schema/migrations/%file_name%.rb')
- destination("#{destination_directory}/#{file_name}.rb")
+Merb::Generators::MigrationGenerator.template :migration_sequel, :orm => :sequel do |t|
+ t.source = File.dirname(__FILE__) / 'templates/migration/schema/migrations/%file_name%.rb'
+ t.destination = "#{destination_directory}/#{file_name}.rb"
end
\ No newline at end of file