Ticket #2846: clone_ssqlite_to_test.diff
| File clone_ssqlite_to_test.diff, 0.8 kB (added by rick, 3 years ago) |
|---|
-
railties/lib/tasks/databases.rake
old new 78 78 ENV['PGPASSWORD'] = abcs["test"]["password"].to_s if abcs["test"]["password"] 79 79 `psql -U "#{abcs["test"]["username"]}" -f db/#{RAILS_ENV}_structure.sql #{abcs["test"]["database"]}` 80 80 when "sqlite", "sqlite3" 81 dbfile = abcs[ RAILS_ENV]["database"] || abcs[RAILS_ENV]["dbfile"]81 dbfile = abcs['test']["database"] || abcs['test']["dbfile"] 82 82 `#{abcs["test"]["adapter"]} #{dbfile} < db/#{RAILS_ENV}_structure.sql` 83 83 when "sqlserver" 84 84 `osql -E -S #{abcs["test"]["host"]} -d #{abcs["test"]["database"]} -i db\\#{RAILS_ENV}_structure.sql`