Skip to content

pokotyan/study-slack

Repository files navigation

dockerで起動

make start
make refresh_db

マイグレーション

Generate migration files

// it will create up & down migration files
make gen_migration name=NAME
  • example
make gen_migration name=create_users

// two migration files below will be created
// 20190625011352_create_users.up.sql 
// 20190625011352_create_users.down.sql

Apply up migrations

  • It will apply all pending migrations
make up_migrate
// force execution
make up_migrate arg=-f

Apply down migrations

  • It will rollback migration by 1 step.
make down_migrate
// force execution
make down_migrate arg=-f

Drop all migrations

  • It will drop all migrations
make drop_migrate
// force execution
make drop_migrate arg=-f

About

勉強会情報をslackへ通知するアプリケーション

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published