Last active
August 29, 2015 14:13
-
-
Save michaellouieloria/3eac581b1651a97eddf0 to your computer and use it in GitHub Desktop.
Migrate column from character varying to integer in Rails
This file contains 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
change_column :table, :column, 'integer USING CAST(column AS integer)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment