Skip to content
Tsutomu Kuroda edited this page Jan 13, 2017 · 11 revisions

Rails 5

Modify Gemfile

gem 'rails', '5.0.1'
$ bin/rake db:setup
Database 'db/development.sqlite3' already exists
Database 'db/test.sqlite3' already exists
rake aborted!
ActiveRecord::NoEnvironmentInSchemaError: 

Environment data not found in the schema. To resolve this issue, run: 

        bin/rails db:environment:set RAILS_ENV=development


Tasks: TOP => db:schema:load => db:check_protected_environments
(See full trace by running task with --trace)
$ bin/rails db:environment:set RAILS_ENV=development
Clone this wiki locally