-
-
Save drymar/82202aa308d502aa0e46d902cea81122 to your computer and use it in GitHub Desktop.
Reversible change_column Rails migration
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
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