Skip to content

Instantly share code, notes, and snippets.

@9876691
Created September 7, 2018 14:00
Show Gist options
  • Save 9876691/829e6cb474e84b1a4fb1097e8c3017db to your computer and use it in GitHub Desktop.
Save 9876691/829e6cb474e84b1a4fb1097e8c3017db to your computer and use it in GitHub Desktop.
class CreateKeyPair::V20180810125258 < LuckyMigrator::Migration::V1
def migrate
create :key_pairs do
add user_id : Int32
add public_key : String
add private_key : String
end
end
def rollback
drop :key_pairs
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment