Skip to content

Instantly share code, notes, and snippets.

@matfiz
Created February 24, 2015 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save matfiz/ed2d524fda88389a6538 to your computer and use it in GitHub Desktop.
Save matfiz/ed2d524fda88389a6538 to your computer and use it in GitHub Desktop.
Reversible change_column Rails migration
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