I am creating a rails 3.1 engine with migrations. rake db: migration works fine inside this engine and inside the host application. But I need to include this engine in another rail engine. The second engine contains a dummy application for testing, I added this line to the application.rb of this dummy application:
require 'my_engine'
In the console, I see classes from the first engine.
rake -T
give me the application: my_engine_engine: install: migrations task, but when I started this task
rake app:my_engine_engine:install:migrations
I get this error:
rake aborted! Don't know how to build task 'railties:install:migrations' Tasks: TOP => app:my_engine_engine:install:migrations (See full trace by running task with --trace)
Can someone help me with this problem?
source share