Created
February 24, 2015 11:45
-
-
Save matfiz/ed2d524fda88389a6538 to your computer and use it in GitHub Desktop.
Reversible change_column Rails 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
reversible do |dir| | |
dir.up { change_column :posts, :name, :text } | |
dir.down { change_column :posts, :name, :string } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment