나는 나의 http://localhost:3000/ 나는 점점 오전에 갈 때 다음레일 : 마이그레이션 오류
ActiveRecord::PendingMigrationError
Migrations are pending. To resolve this issue, run: bin/rails db:migrate RAILS_ENV=development
추출 소스 : 또한
# Raises <tt>ActiveRecord::PendingMigrationError</tt> error if any migrations are pending.
def check_pending!(connection = Base.connection)
raise ActiveRecord::PendingMigrationError if ActiveRecord::Migrator.needs_migration?(connection)
end
def load_schema_if_pending!
, 나는 콘솔에서 heroku run rake db:migrate
을하려 할 때,
StandardError: An error has occurred, this and all later migrations canceled: PG::DuplicateColumn: ERROR: column "email" of relation "users" already exists
나는 루비에 새로운 오전 및 Mac으로 devise tutorial을 따랐다 고 말했다 켄지 아이. 내 첫 번째 루비 응용 프로그램을 완성하는 마지막 단계입니다.
나는 당신의 도움에 기대하고 있습니다! :)
나는 이것을 시도했지만 다음과 같은 레이크 db : migrate 후에도 오류가 발생합니다. 레이크 중단되었습니다! StandardError : 오류가 발생했습니다.이 이후의 모든 마이그레이션이 취소되었습니다. SQLite3 :: SQLException : 중복 열 이름 : encrypted_password : ALTER TABLE "users"ADD "encrypted_password"varchar DEFAULT ''NOT NULL /Users/matthiascordes /. rvm/gems/ruby-2.3.1/gems/sqlite3-1.3.11/lib/sqlite3/database.rb : 91 :'초기화 ' /Users/matthiascordes/.rvm/gems/ruby-2.3.1/gems /sqlite3-1.3.11/lib/sqlite3/database.rb:91:in'new ' ...등등 –
및 또한이 대신 : SQLite3 :: SQLException : 해당 테이블 : users : ALTER TABLE "users"ADD "encrypted_password"varchar DEFAULT 'NOT NULL –
내 대답의 업데이트를 참조하십시오. –