lib/fishplate/tasks.rake in fishplate-7.0.0 vs lib/fishplate/tasks.rake in fishplate-7.0.1
- old
+ new
@@ -24,9 +24,9 @@
|class #{klass} < ActiveRecord::Migration[#{ActiveRecord::Migration.current_version}]
| def change
| end
|end
CONTENT
- File.open(file_path, "w+") { |f| f.write(content.gsub(/( +\|)/, '')) }
+ File.write(file_path, content.gsub(/( +\|)/, ''))
puts "Created migration file: #{relative_file_path}"
end
end