I have a rails migration that is not being applied to my schema.rb. The migration should create a table:
class CreateUserGraphs < ActiveRecord::Migration
I had the same issue. I am working in development environment (with Passenger and Apache). Production and development environments use the same database.
When I run rake db:migrate
, the db was changed, but the schema was not updated. Then I run rake db:migrate RAILS_ENV=development
, and now the schema was updated.
Seems that rails/rake are confused about my environment. Passenger sets a development environment for this site, but rake about
says "Environment production".