Update migration.rb

fixed escape_quotes to correctly escape single- and double-quotes