Rails migration does not change schema.rb

后端 未结 6 2284
余生分开走
余生分开走 2020-12-24 02:34

I have a rails migration that is not being applied to my schema.rb. The migration should create a table:

class CreateUserGraphs < ActiveRecord::Migration
         


        
6条回答
  •  没有蜡笔的小新
    2020-12-24 02:41

    Found a way to obtain an error description. ran rake db:migrate:reset and received

    `SQLite3::SQLException: Cannot add a NOT NULL column with default value NULL: ALTER TABLE "rooms" ADD "priority" integer NOT NULL/usr/local/rvm/gems/ruby-2.2.1/gems/sqlite3-1.3.9/lib/sqlite3/database.rb:91:in `initialize`'
    

提交回复
热议问题