Permalink
Browse files

Merge pull request #481 from kreichert/master

fix(template): Double quoting interpolated file name for coffee
  • Loading branch information...
2 parents 41628f7 + 369bf85 commit 4238ecd41f36802f4233c68f3764e70091698f95 @wzrdtales wzrdtales committed on GitHub Jul 12, 2017
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/migration.js
View
@@ -279,16 +279,16 @@ Migration.prototype.coffeeSqlFileLoaderTemplate = function() {
'',
'',
'exports.up = (db, callback) ->',
- ' filePath = path.join \'#{__dirname}/sqls/' + this.name.replace(
- '.coffee', '') + '-up.sql\'',
+ ' filePath = path.join "#{__dirname}/sqls/' + this.name.replace(
+ '.coffee', '') + '-up.sql"',
' fs.readFile filePath, {encoding: \'utf-8\'}, (err,data) ->',
' return callback err if err',
'',
' db.runSql data, callback',
'',
'exports.down = (db, callback) ->',
- ' filePath = path.join \'#{__dirname}/sqls/' + this.name.replace(
- '.coffee', '') + '-down.sql\'',
+ ' filePath = path.join "#{__dirname}/sqls/' + this.name.replace(
+ '.coffee', '') + '-down.sql"',
' fs.readFile filePath, {encoding: \'utf-8\'}, (err,data) ->',
' return callback err if err',

0 comments on commit 4238ecd

Please sign in to comment.