Created
December 19, 2017 19:44
-
-
Save uriklar/ad72c7e0c3ccfda15ee48ee3aeb4631d to your computer and use it in GitHub Desktop.
Rename columns migration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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