Terminal
rails generate migration fix_typo
db/migrate/XXXXXXXXXXXXXXXX_fix_typo.rb
class ChangeColumnModelName < ActiveRecord::Migration[5.0]
def change
rename_column :modelname, :wrong, :correct
end
end
Terminal
rake db:migrate
rails generate migration fix_typo
class ChangeColumnModelName < ActiveRecord::Migration[5.0]
def change
rename_column :modelname, :wrong, :correct
end
end
rake db:migrate