lib/generators/cloudrider/migrations/migrations_generator.rb in cloudrider-0.2.1 vs lib/generators/cloudrider/migrations/migrations_generator.rb in cloudrider-0.2.2
- old
+ new
@@ -26,8 +26,8 @@
def _original_filenames
Dir[File.join(self.class.source_root, "*.rb")].map { |f| f.split("/").last }
end
def _destinationify_filename(f)
- File.join "db", "migrate", f.split("_").head.join("_")
+ File.join "db", "migrate", f.split("_").tail.join("_")
end
end
\ No newline at end of file