ruby - migration still runs code when it has been commented out -


i have code has been commented out in migration yet when run migration code still attempts run. gives following error:

error pg::error: error:  column "rount_id" of relation "rounds" not exist 

the error above reason why has been commented out.

def   remove_column :rounds, :rount_id end def down   add_column :rounds, :rount_id, :integer end 

are sure running on development

replace migration file following code,

def change   remove_column :rounds, :rount_id, :integer end 

and run

rake db:migrate rails_env="development"

if going comment it, like

def change   #remove_column :rounds, :rount_id, :integer end 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -