I used mysql Ver 14.14 for both development and production environment. I have a db migration file like:
class ChangeRoleToNodeTemplate < ActiveRecord::Migration
def up
rename_table :roles, :node_templates
end
def down
rename_table :node_templates, :roles
end
end
When i run 'rake db:migrate' command, the schema.rb file which it generated is correctly.
But when i run 'rake db:migrate RAILS_ENV=production', it contains both 'roles' and 'node_templates' table with the same schema.
Anyone can give me a suggestion? Thanks.
I used Rails 3.1.0