Use db migration script instead of rake mole:install

1 view
Skip to first unread message

Eric Pugh

unread,
Sep 27, 2007, 3:06:27 PM9/27/07
to MOle Plugin
I just installed my Rails app on a new server, and because I didn't
install the plugin via ./script/plugin, the install.rb for Mole was
never run. Which meant I didn't have the mole database tables!

I added to my instructions:

6) Create the mole tables
ruby ./vendor/plugins/mole/install.rb

However, it would be much nicer if running rake mole:install generated
a database migration instead in my db/migrate directory. That way as
part of my initial rake migrate the mole tables would be put in!

Cheers,
Eric

Reply all
Reply to author
Forward
0 new messages