Skip to content

Instantly share code, notes, and snippets.

@wub
Created July 6, 2019 06:56
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 wub/ad76c0745f1681cc8c35542f447e823e to your computer and use it in GitHub Desktop.
Save wub/ad76c0745f1681cc8c35542f447e823e to your computer and use it in GitHub Desktop.
Migration
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