Skip to content

Commit 88a7591

Browse files
committed
Merge pull request #55226 from zzak/migrations_paths_doc
Add note to Migrations guide for migrations_paths option [ci skip]
1 parent 31217f6 commit 88a7591

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

guides/source/active_record_migrations.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ another application or generating a file yourself, be aware of its position in
112112
the order. You can read more about how the timestamps are used in the [Rails
113113
Migration Version Control section](#rails-migration-version-control).
114114

115+
NOTE: You can override the directory that migrations are stored in by setting the
116+
`migrations_paths` option in your `config/database.yml`.
117+
115118
When generating a migration, Active Record automatically prepends the current
116119
timestamp to the file name of the migration. For example, running the command
117120
below will create an empty migration file whereby the filename is made up of a

0 commit comments

Comments
 (0)