diff options
author | Gannon McGibbon <gannon.mcgibbon@gmail.com> | 2018-09-28 13:36:06 -0400 |
---|---|---|
committer | Gannon McGibbon <gannon.mcgibbon@gmail.com> | 2018-09-28 14:24:36 -0400 |
commit | 4775d3d051af1a506b63a7e4069c94e49c82177d (patch) | |
tree | bd4dfbe583b86ee24e2548b83cc50f323891a918 /railties/CHANGELOG.md | |
parent | 7d89337b1722587961b9bb81031661b99935d919 (diff) | |
download | rails-4775d3d051af1a506b63a7e4069c94e49c82177d.tar.gz rails-4775d3d051af1a506b63a7e4069c94e49c82177d.tar.bz2 rails-4775d3d051af1a506b63a7e4069c94e49c82177d.zip |
Refactor migrations_path command option to database
Diffstat (limited to 'railties/CHANGELOG.md')
-rw-r--r-- | railties/CHANGELOG.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index a839f80eb3..37444c4cf6 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -1,3 +1,18 @@ +* Refactors `migrations_paths` command option in generators + to `database` (aliased as `db`). Now, the migrations paths + will be read from the specified database configuration in the + current environment. + + ``` + bin/rails g model Chair brand:string --database=kingston + invoke active_record + create db/kingston_migrate/20180830151055_create_chairs.rb + ``` + + `--database` can be used with the migration, model, and scaffold generators. + + *Gannon McGibbon* + * Adds an option to the model generator to allow setting the migrations paths for that migration. This is useful for applications that use multiple databases and put migrations |