-
-
Save wub/ad76c0745f1681cc8c35542f447e823e to your computer and use it in GitHub Desktop.
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 CreateUsers::V00000000000001 < Avram::Migrator::Migration::V1 | |
def migrate | |
create :users do | |
add email : String, unique: true | |
add encrypted_password : String | |
end | |
end | |
def rollback | |
drop :users | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment