# Login\_engine database migration broken?

**URL:** <https://www.ruby-forum.com/t/login-engine-database-migration-broken/93936>\
**Category:** Rails\
**Created:** [April 15, 2006, 6:03am UTC](https://www.ruby-forum.com/t/login-engine-database-migration-broken/93936 "2006-04-15T06:03:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adambeazley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Post date:** [April 15, 2006, 6:03am UTC](https://www.ruby-forum.com/t/login-engine-database-migration-broken/93936/1 "2006-04-15T06:03:54Z")

</div>

I’m trying to install the login\_engine. I installed the engine system  
and the login\_engine, and now I’m trying to migrate the database schema,  
as detailed here: [http://api.rails-engines.org/login\_engine/](http://api.rails-engines.org/login_engine/).

The commands I’ve tried are:

rake engine\_migrate ENGINE=login which fails with “Don’t know how to  
build task ‘engine\_migrate’.”

and:

rake import\_login\_engine\_schema ENGINE=login which fails with “no such  
file to load –  
/Users/admanb/Documents/h4x/Ruby/anime/config/…/vendor/plugins/login\_engine/db/schema.rb”

and there is, infact, no such file. There’s only one named  
“001\_initial\_schema.rb” in login\_engine/db/migrate.

Will it work find if I just add the table to my sql database? Thanks,

Adam

---

<div class="post-metadata">

**Author:** ![adambeazley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Post date:** [April 15, 2006, 6:20am UTC](https://www.ruby-forum.com/t/login-engine-database-migration-broken/93936/2 "2006-04-15T06:20:52Z")

</div>

Adam B. wrote:

> I’m trying to install the login\_engine. I installed the engine system  
> and the login\_engine, and now I’m trying to migrate the database schema,  
> as detailed here: [http://api.rails-engines.org/login\_engine/](http://api.rails-engines.org/login_engine/).
> 
> The commands I’ve tried are:
> 
> rake engine\_migrate ENGINE=login which fails with “Don’t know how to  
> build task ‘engine\_migrate’.”
> 
> and:
> 
> rake import\_login\_engine\_schema ENGINE=login which fails with “no such  
> file to load –  
> /Users/admanb/Documents/h4x/Ruby/anime/config/…/vendor/plugins/login\_engine/db/schema.rb”
> 
> and there is, infact, no such file. There’s only one named  
> “001\_initial\_schema.rb” in login\_engine/db/migrate.
> 
> Will it work find if I just add the table to my sql database? Thanks,
> 
> Adam

Hi Adam:

Im using login and user engines with rails 1.1.2

My question may be obvious but…  
Have you installed plugin engines?

Which rails version do you have?

P

[http://wiki.onrails.com.ar](http://wiki.onrails.com.ar)

---

<div class="post-metadata">

**Author:** ![adambeazley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Post date:** [April 15, 2006, 7:19am UTC](https://www.ruby-forum.com/t/login-engine-database-migration-broken/93936/3 "2006-04-15T07:19:35Z")

</div>

Rails 1.1.2, and yeah I have.

I got it working though. I took the file “001\_initial\_schema.rb” moved  
it to root/db/migrate and did a rake migrate. That worked.

I think it’s just a problem with the documentation.

Thanks,

-Adam

---

<div class="post-metadata">

**Author:** ![adambeazley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Post date:** [April 5, 2007, 2:33am UTC](https://www.ruby-forum.com/t/login-engine-database-migration-broken/93936/4 "2007-04-05T02:33:40Z")

</div>

Hi, I’m experiencing a similar issue however I don’t think it’s a  
problem with the documentation since after you install the Engines  
plugin, my understanding is that there should be added rake tasks, like  
db:migrate:engines and a few others.

I followed the instructions per the Engines plugin installation note and  
the install reported that it had successfully installed, yet when i do a  
rake db:migrate:engines ENGINE=login I get the same rake task not found  
type error and sure enough when I do a rake -T there is no  
db:migration:engines task.

When I run script/plugins list --remote it does show that both the  
engines and login\_engine are both installed.

When rake executes where and how does it lookup available rake tasks?  
Also do I need to add anything to the environments.rb file to help rails  
find the plugin directory?

Thanks in advance,

Jason

Adam B. wrote:

> Rails 1.1.2, and yeah I have.
> 
> I got it working though. I took the file “001\_initial\_schema.rb” moved  
> it to root/db/migrate and did a rake migrate. That worked.
> 
> I think it’s just a problem with the documentation.
> 
> Thanks,
> 
> -Adam
