3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

sql-migrate PostgreSQLで環境変数を利用した設定例

Posted at

公式リポジトリ

設定例

dbconfig.yml
development:
  dialect: postgres
  dir: migrations
  table: migration
  datasource: host=${DB_HOST} port=${DB_PORT} dbname=${DB_DATABASE} user=${DB_USERNAME} password=${DB_PASSWORD} sslmode=disable
  • dir マイグレーションファイルを作成するディレクトリ
  • table マイグレーションテーブルの名前。省略した場合デフォルトのgorp_migrationsになる
3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?