Created
July 6, 2019 06:59
-
-
Save wub/5921dae0f838b953f0897c4615cffc81 to your computer and use it in GitHub Desktop.
New 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
class CreateJarrods::V20190706065802 < Avram::Migrator::Migration::V1 | |
def migrate | |
create table_for(Jarrod) do | |
primary_key id : Int64 | |
add_timestamps | |
end | |
end | |
def rollback | |
drop table_for(Jarrod) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment