I gave a column the wrong name. Now what?
Create a migration to fix the error. Migrations need names;
substitute a reasonable name such as "rename x to y" in the following:
rails generate migration name
Then edit the generated migration file and add a line
rename_column :table, :old_column, :new_column
where the table and columns are filled in as appropriate. rake
db:migrate and your database is good to go.
CoffeeScript
If having difficulty calling functions, the function may be part of a
class. Try adding @ in front; for example, call @myfun()
rather than myfun().