I’ve been using Rake to migrate my database schema as I work on it to
make deployment easier later on. I tried to add a session table as
and it appears to have worked fine.
However, now rake migrate fails with the following error:
[email protected]:~/user/ruby/HoshinWeb$ rake migrate
uninitialized constant CreateUserRoles
I have a file called 010_Create_User_Roles. Interestingly enough, when I
remove this file, the migration works just fine. Below are the contents
of the file.
class UserRoles < ActiveRecord::Migration
create_table “user_roles” do |t|
t.column “user_id”, :int
t.column “role_id”, :int
Can anyone see why this one is failing? I’m comparing it to my other
files and I don’t see any differences. This is the first many-to-many
join table in the migration though. Could that be the problem?
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
countries) for 2Â¢/min or less.