Skip to content

Instantly share code, notes, and snippets.

@bcardarella
Created July 12, 2015 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcardarella/1a886bae9dcfd628f2c2 to your computer and use it in GitHub Desktop.
Save bcardarella/1a886bae9dcfd628f2c2 to your computer and use it in GitHub Desktop.
# forward migration
alter table(:posts) do
rename :new_posts
end
# backward migration logically would equal
alter table(:new_posts) do
rename :posts
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment