diff --git a/lib/rails-backup-migrate.rb b/lib/rails-backup-migrate.rb index 45d72ce..2c6cb07 100644 --- a/lib/rails-backup-migrate.rb +++ b/lib/rails-backup-migrate.rb @@ -144,7 +144,7 @@ def restore_db_from_yml puts "Loading #{tbl}..." if VERBOSE YAML.load_file("#{tbl}.yml").each do |fixture| - ActiveRecord::Base.connection.execute "INSERT INTO #{tbl} (#{fixture.keys.map{|k| "`#{k}`"}.join(",")}) VALUES (#{fixture.values.collect { |value| ActiveRecord::Base.connection.quote(value) }.join(",")})", 'Fixture Insert' + ActiveRecord::Base.connection.execute "INSERT INTO #{tbl} (#{fixture.keys.map{|k| "#{k}"}.join(",")}) VALUES (#{fixture.values.collect { |value| ActiveRecord::Base.connection.quote(value) }.join(",")})", 'Fixture Insert' end end end