ArgumentError: Write key must be initialized Rails
Asked Answered
M

1

5

Hi I'm new to Rails and I'm using nitrous.io as my IDE.

I just generated a model using rails generate model Micropost content:text user:references

When I run bundle exec rake db:migrate I get the following error: ArgumentError: Write key must be initialized.

Any help with this will be greatly appreciated.

Mystagogue answered 18/5, 2016 at 4:48 Comment(0)
U
13

Are you using Segment's ruby gem by any chance? It happened to me too and it turned out it was a Segment misconfiguration. The API key was missing.

See the docs: https://github.com/segmentio/analytics-ruby#usage

And this is where the error is fired: https://github.com/segmentio/analytics-ruby/blob/master/lib/segment/analytics/client.rb#L336

Unclasp answered 16/9, 2016 at 21:39 Comment(1)
Yes, I was. Thanks for the feedback.Mystagogue

© 2022 - 2024 — McMap. All rights reserved.