aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorschneems <richard.schneeman@gmail.com>2013-08-05 11:12:12 -0400
committerschneems <richard.schneeman@gmail.com>2013-08-05 12:10:52 -0400
commitf036239447c79843983ee1c0d3dfe68484d63203 (patch)
treefcb37f07ccb111253bb2385d8955d1dbbc1655fd /activerecord/CHANGELOG.md
parent3baee0982d25e64cab2eeb046369f0fcf9ee2436 (diff)
downloadrails-f036239447c79843983ee1c0d3dfe68484d63203.tar.gz
rails-f036239447c79843983ee1c0d3dfe68484d63203.tar.bz2
rails-f036239447c79843983ee1c0d3dfe68484d63203.zip
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
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 74f2b2287f..f60ea9838b 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,7 @@
+* Create a directory for sqlite3 file if not present on the system.
+
+ *Richard Schneeman*
+
* Removed redundant override of `xml` column definition for PG,
in order to use `xml` column type instead of `text`.