Created
July 12, 2015 16:44
-
-
Save bcardarella/1a886bae9dcfd628f2c2 to your computer and use it in GitHub Desktop.
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
# 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