1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

as of Rails 3.2.13 it appears that importing an engine's migration into the host app is achieved by rake blorgh_engine:install:migrations

This commit is contained in:
Les Nightingill 2013-03-31 18:21:41 -07:00
parent da9031ae26
commit 62b9723fbf

View file

@ -461,7 +461,7 @@ NOTE: Other engines, such as Devise, handle this a little differently by making
The engine contains migrations for the `blorgh_posts` and `blorgh_comments` table which need to be created in the application's database so that the engine's models can query them correctly. To copy these migrations into the application use this command: The engine contains migrations for the `blorgh_posts` and `blorgh_comments` table which need to be created in the application's database so that the engine's models can query them correctly. To copy these migrations into the application use this command:
```bash ```bash
$ rake blorgh:install:migrations $ rake blorgh_engine:install:migrations
``` ```
If you have multiple engines that need migrations copied over, use `railties:install:migrations` instead: If you have multiple engines that need migrations copied over, use `railties:install:migrations` instead: