LoginSignup
2
1

More than 5 years have passed since last update.

ActionCable using PostgreSQL adapter

Last updated at Posted at 2016-05-13

ActionCableのadapterにPostgreSQLが使えるようだったのだが、設定がまったく見当たなかったのでソースを見たところ、ActiveRecordのコネクションを利用するようになっていて、要するにActionCable独自の設定は不要だった。分けられないという見方もできるけど、まあ分けるぐらいならredisを使うと思うのでシンプルで充分。

ちなみに設定は以下の通り。


development:
  adapter: postgresql
test:
  adapter: postgresql
production:
  adapter: postgresql

簡単ですね!ほとんど出オチですみません。

2
1
2

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
2
1