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 5 years have passed since last update.

switch_point使ってる環境にdynamoid追加したら衝突した

Posted at

データベースの垂直分割用に switch_point 使ってる環境で dynamoid を使おうとしてGemfileに書いて rake db:reset したら物騒なエラーメッセージが出た。

Gemfile
gem "dynamoid"
gem "switch_point"
$ bundle exec rake db:reset
rake aborted!
KeyError: key not found: :master

ロード順が影響してるのかなと思ってGemfile内で順番変えてみたけどダメだったので、dynamoidの方をあとからロードするようになったら動くようになった。

Gemfile
gem "dynamoid", require: false
gem "switch_point"
config/initializers/dynamoid.rb
require "dynamoid"
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?