Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

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  
    7878      ENV['PGPASSWORD'] = abcs["test"]["password"].to_s if abcs["test"]["password"] 
    7979      `psql -U "#{abcs["test"]["username"]}" -f db/#{RAILS_ENV}_structure.sql #{abcs["test"]["database"]}` 
    8080    when "sqlite", "sqlite3" 
    81       dbfile = abcs[RAILS_ENV]["database"] || abcs[RAILS_ENV]["dbfile"] 
     81      dbfile = abcs['test']["database"] || abcs['test']["dbfile"] 
    8282      `#{abcs["test"]["adapter"]} #{dbfile} < db/#{RAILS_ENV}_structure.sql` 
    8383    when "sqlserver" 
    8484      `osql -E -S #{abcs["test"]["host"]} -d #{abcs["test"]["database"]} -i db\\#{RAILS_ENV}_structure.sql`