Rails 5 - db:environment:set

1,142 views
Skip to first unread message

Douglas Teoh

unread,
Jul 7, 2016, 1:02:01 AM7/7/16
to Ruby on Rails: Talk
I am in the process of upgrading an app to Rails 5. One thing that I stumbled on while recreating my test database was the `db:environment:set` command.

From what I can see, this makes a table named `internal_metadata` and stores an environment value.

Is running this command on all existing databases required? I cannot find any further information about this command in the upgrade guide or the ActiveRecord changelog notes.

Douglas Teoh

unread,
Jul 7, 2016, 2:56:31 AM7/7/16
to Ruby on Rails: Talk


Looks like this is for preventing accidental destruction of the production DB:

http://blog.bigbinary.com/2016/06/07/rails-5-prevents-destructive-action-on-production-db.html

Reply all
Reply to author
Forward
0 new messages