Migrations
component {
function up( schema, qb ) {
schema.create( "users", function( t ) {
t.increments( "id" );
t.string( "email" );
t.string( "password" );
} );
}
function down( schema, qb ) {
schema.drop( "users" );
}
}Tips and tricks
Setting Schema
Default values in MS SQL server
Updating database content in a migration file
Last updated
Was this helpful?