aboutsummaryrefslogtreecommitdiffstats
path: root/railties/CHANGELOG.md
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2018-09-27 11:26:49 -0400
committerGitHub <noreply@github.com>2018-09-27 11:26:49 -0400
commit8a0194f1514fc2374b18db909f78f733ba0857b9 (patch)
tree7e644c6581425760f859a49bf207e13ed56677a3 /railties/CHANGELOG.md
parent1930d22936c3bfb883dd4b46173bb902db17bb50 (diff)
parent77aaeced89cb84404cf69f8b23834520de3214a9 (diff)
downloadrails-8a0194f1514fc2374b18db909f78f733ba0857b9.tar.gz
rails-8a0194f1514fc2374b18db909f78f733ba0857b9.tar.bz2
rails-8a0194f1514fc2374b18db909f78f733ba0857b9.zip
Merge pull request #33994 from gmcgibbon/rails_g_model_migrations_paths
Add migrations_paths option to model generator
Diffstat (limited to 'railties/CHANGELOG.md')
-rw-r--r--railties/CHANGELOG.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md
index 4342cf6968..a839f80eb3 100644
--- a/railties/CHANGELOG.md
+++ b/railties/CHANGELOG.md
@@ -1,3 +1,19 @@
+* 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
+ per database in their own directories.
+
+ ```
+ bin/rails g model Room capacity:integer --migrations-paths=db/kingston_migrate
+ invoke active_record
+ create db/kingston_migrate/20180830151055_create_rooms.rb
+ ```
+
+ Because rails scaffolding uses the model generator, you can
+ also specify migrations paths with the scaffold generator.
+
+ *Gannon McGibbon*
+
* Raise an error when "recyclable cache keys" are being used by a cache store
that does not explicitly support it. Custom cache keys that do support this feature
can bypass this error by implementing the `supports_cache_versioning?` method on their