Skip to content

Instantly share code, notes, and snippets.

@uriklar
Created December 19, 2017 19:44
Show Gist options
  • Save uriklar/ad72c7e0c3ccfda15ee48ee3aeb4631d to your computer and use it in GitHub Desktop.
Save uriklar/ad72c7e0c3ccfda15ee48ee3aeb4631d to your computer and use it in GitHub Desktop.
Rename columns migration
class FixUserFields < ActiveRecord::Migration
def change
rename_column :users, :First_name, :first_name
rename_column :users, :Last_name, :last_name
rename_column :users, :Email, :email
rename_column :users, :Password, :password
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment