Skip to content

Instantly share code, notes, and snippets.

@crackedmind
Last active December 20, 2015 02:49
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 crackedmind/21e219c5013dc6057a4e to your computer and use it in GitHub Desktop.
Save crackedmind/21e219c5013dc6057a4e to your computer and use it in GitHub Desktop.
class CreateTableItems : public Migration
{
public:
auto up() -> void
{
create_table("items",[](TableSchema& t) {
t.integer("user_id", (10_limit, notnull_default));
});
}
auto down() -> void {
drop_table("items");
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment