Skip to content

Unable to run db:migrate #14

@matthewblott

Description

@matthewblott

As the title says, I receive the following in the error log whenever I attempt to run db:migrate:

ActiveRecord::StatementInvalid: SQLite3::ReadOnlyException: attempt to write a readonly database 

My database.yml is setup as follows:

default: &default
  adapter: sqlite3
  pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  timeout: 5000

development:
  reader:
    <<: *default
    readonly: true
    database: storage/development.sqlite3
  writer:
    <<: *default
    pool: 1
    database: storage/development.sqlite3

The test and production databases are setup accordingly but have been left out for brevity. I was largely following the guide found here. Thanks in advance :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions