unixcharles / refinerycms-music

RefineryCMS engine for music section
MIT License
21 stars 7 forks source link

No tables installed #3

Closed SounDBuytz closed 13 years ago

SounDBuytz commented 13 years ago

I installed refinerycms-music gem using bundle install:

$ bundle show refinerycms-music /Users/ron/.rvm/gems/ruby-1.9.2-p180/gems/refinerycms-music-0.2.1

Then:

$ rails generate refinerycms_music

Result:


Now run: rake db:migrate


$ bundle show refinerycms-music /Users/ron/.rvm/gems/ruby-1.9.2-p180/gems/refinerycms-music-0.2.1

Now: $ rake db:migrate (in /Users/ron/mco/mco)

Here no migrations take place.

and at:

MyApp/db/migrations there is no new migration file resulting from "rails generate refinerycms_music."

and there is no SQLite tables relating to music when I look at development.sqlite3 with the FireFox SQLite manager.

There is, however, after firing up the server with

$ rails server

at http://localhost:3000/refinery/ a new tab labeled Musique (French for music). On clicking on this tab, I get the following error from rails.

ActiveRecord::StatementInvalid in Admin::SongsController#index

SQLite3::SQLException: no such table: songs: SELECT "songs".* FROM "songs" LIMIT 30 OFFSET 0

Any suggestions on how to fix this??

Thanks

unixcharles commented 13 years ago

Thanks for reporting

Fixed, I push some cleanup without testing locally, sorry.

bump the gem to 0.2.2 and run the migration again.