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

Changeset 2992

Show
Ignore:
Timestamp:
11/13/05 02:50:42 (3 years ago)
Author:
bitsweat
Message:

SQLite: the clone_structure_to_test and purge_test_database Rake tasks should always use the test environment. Reference #2846.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/CHANGELOG

    r2990 r2992  
    11*SVN* 
    22 
    3 * SQLite: the clone_structure_to_test Rake task should always use the test environment.  #2846 [Rick Olson] 
     3* SQLite: the clone_structure_to_test and purge_test_database Rake tasks should always use the test environment.  #2846 [Rick Olson] 
    44 
    55* Make sure that legacy db tasks also reference :database for SQLite #2830 [kazuhiko@fdiary.net] 
  • trunk/railties/lib/tasks/databases.rake

    r2990 r2992  
    108108      `createdb #{enc_option} -T template0 -U "#{abcs["test"]["username"]}" #{abcs["test"]["database"]}` 
    109109    when "sqlite","sqlite3" 
    110       dbfile = abcs[RAILS_ENV]["database"] || abcs[RAILS_ENV]["dbfile"] 
     110      dbfile = abcs["test"]["database"] || abcs["test"]["dbfile"] 
    111111      File.delete(dbfile) if File.exist?(dbfile) 
    112112    when "sqlserver"