1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases/adapters/sqlite3
schneems f036239447 Create sqlite3 directory if not present
If the `db/` directory is not present on a remote machine it will blow up in unexpected ways with error messages that do not indicate there is a missing directory:

```
SQLite3::CantOpenException: unable to open database file
```

This PR checks to see if a directory exists for the sqlite3 file and if not creates it for you.

This PR is an alternative to #11692 as suggested by @josevalim
2013-08-05 12:10:52 -04:00
..
copy_table_test.rb each to each_value; remove unused vars 2013-04-07 19:59:07 +05:30
explain_test.rb add the query to AR::Relation#explain output 2011-11-25 14:29:34 -08:00
quoting_test.rb Use Encoding::UTF_8 constant 🚯 2013-01-28 17:06:02 +09:00
sqlite3_adapter_test.rb Define enable_extension method to prevent undefined method error 2013-08-02 15:43:54 +02:00
sqlite3_create_folder_test.rb Create sqlite3 directory if not present 2013-08-05 12:10:52 -04:00
statement_pool_test.rb fix tests for sqlite3 2012-04-27 13:09:12 +07:00