aboutsummaryrefslogtreecommitdiffstats
path: root/railties/CHANGELOG.md
diff options
context:
space:
mode:
authorGannon McGibbon <gannon.mcgibbon@gmail.com>2018-12-31 13:46:30 -0500
committerGannon McGibbon <gannon.mcgibbon@gmail.com>2019-01-09 14:23:25 -0500
commit4b1ae57f0f905bd8cb63e435197db5014239d39e (patch)
tree4153158fa41b6a9c6c6162ed38d20a4b390132b6 /railties/CHANGELOG.md
parente3204b9c33cc8a0385f002ce8ca42b4f4192d869 (diff)
downloadrails-4b1ae57f0f905bd8cb63e435197db5014239d39e.tar.gz
rails-4b1ae57f0f905bd8cb63e435197db5014239d39e.tar.bz2
rails-4b1ae57f0f905bd8cb63e435197db5014239d39e.zip
Add rails db:system:change command
Add `rails db:system:change` command for changing databases. ``` bin/rails db:system:change --to=postgresql force config/database.yml gsub Gemfile ``` The change command copies a template `config/database.yml` with the target database adapter into your app, and replaces your database gem with the target database gem.
Diffstat (limited to 'railties/CHANGELOG.md')
-rw-r--r--railties/CHANGELOG.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md
index 673b6eac86..c4123886bf 100644
--- a/railties/CHANGELOG.md
+++ b/railties/CHANGELOG.md
@@ -1,3 +1,15 @@
+* Add `rails db:system:change` command for changing databases.
+
+ ```
+ bin/rails db:system:change --to=postgresql
+ force config/database.yml
+ gsub Gemfile
+ ```
+
+ The change command copies a template `config/database.yml` with the target database adapter into your app, and replaces your database gem with the target database gem.
+
+ *Gannon McGibbon*
+
* Use original `bundler` environment variables during the process of generating a new rails project.
*Marco Costa*