I have by mistake given a column in my database a wrong name, so I wish to change it. I have run my:
bundle exec rake db:migrate
I am trying to rename my column with this command:
rename_column(Bankline, appendex_number, appendix_number)
Taken from here:
http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html#method-i-rename_column
However, my Terminal gives my this error message:
-bash: syntax error near unexpected token `Bankline,'
Any ideas? I have already tryed these commands:
rename_column(bankline, appendex_number, appendix_number)
rename_column(banklines, appendex_number, appendix_number)
The answer is on the page you link to: