Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add read only mode to seeds #2100

Closed
pgwillia opened this issue Jan 19, 2021 · 0 comments
Closed

Add read only mode to seeds #2100

pgwillia opened this issue Jan 19, 2021 · 0 comments

Comments

@pgwillia
Copy link
Member

Describe the bug
ReadOnlyMode.create(enabled: false) should be added to the seeds. It's in a migration but that doesn't get set in development if you're running db:prepare or db:setup.

To Reproduce
Steps to reproduce the behavior:

  1. docker-compose down -v
  2. docker-compose up -d
  3. rails db:prepare (as per the README)
  4. See error

Expected behavior
The seeds will prepare the database for development without extra steps.

Additional context
This is where it's added in a migration

class AddInitialReadOnlyModes < ActiveRecord::Migration[6.0]
def change
ReadOnlyMode.create(enabled: false)
end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant