rplaurindo
rplaurindo

Reputation: 1404

How to generate migration inside folder db/migrate on a personal engine of Rails

I think the title is very clear about what I need. The structure of the engine is not like a Rails application. I need to know what lib I require to use the command:

rails g migration ...

Inside folder of my personal engine

Upvotes: 1

Views: 1402

Answers (1)

AJFaraday
AJFaraday

Reputation: 2450

I would simply generate the migration within your rails directory and move it to the engine. This will generate the time-stamp and class, and it doesn't need to stay in the /db/migrate folder of your rails directory.

Upvotes: 1

Related Questions