I have basically a bare-bones rails 3.1 application that I want to deploy to heroku. I have followed this tutorial to use Devise, Cancan, and Rolify. (I added a username column to Users table)
Everything is working just fine on my development server, but when I try to run heroku run rake db:migrate
I get the error "rake aborted! uninitialized constant Rolify::Roles"
Here is my user.rb file
class User < ActiveRecord::Base
include Rolify::Roles
has_and_belongs_to_many :roles, :join_table => :users_roles
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
attr_accessible :email, :password, :password_confirmation, :remember_me, :username
end
I have tried running heroku restart
then trying the migration again, but no good.