ActiveRecord :: PendingMigrationError迁移正在等待处理。要解决此问题,请运行:bin / rake db:migrate RAILS_ENV = development

时间:2016-01-12 03:24:15

标签: ruby-on-rails ruby activerecord

我试过rake db:migrate,我似乎无法解决这个问题。谁知道从哪里开始?我已经查看了StackOverflow上的大多数其他挂起的迁移错误,似乎无法找到解决方案。

注意:在Windows上运行rails

运行rake db:migrate:

之后
DL is deprecated, please use Fiddle
-- add_index(:conversations, :sender_id)
-- add_index(:conversations, :sender_id)
rake aborted!
ActiveRecord::StatementInvalid: SQLite3::SQLException: no such table: main.conversations: CREATE  INDEX "index_conversations_on_sender_id" ON "conversations" ("sender_id")
C:/Users/Jason/Documents/GitHub/TruTechEventPlanner/db/migrate/20151118013432_create_chats.rb:13:in `<class:CreateChats>'
C:/Users/Jason/Documents/GitHub/Planner/db/migrate/20151118013432_create_chats.rb:1:in `<top (required)>'
C:in `disable_ddl_transaction'
SQLite3::SQLException: no such table: main.conversations
C:/Users/Jason/Documents/GitHub/Planner/db/migrate/20151118013432_create_chats.rb:13:in `<class:CreateChats>'
C:/Users/Jason/Documents/GitHub/Planner/db/migrate/20151118013432_create_chats.rb:1:in `<top (required)>'
C:in `disable_ddl_transaction'
ActiveRecord::StatementInvalid: SQLite3::SQLException: no such table: main.conversations: CREATE  INDEX "index_conversations_on_sender_id" ON "conversations" ("sender_id")
C:/Users/Jason/Documents/GitHub/Planner/db/migrate/20151118013432_create_chats.rb:13:in `<class:CreateChats>'
C:/Users/Jason/Documents/GitHub/Planner/db/migrate/20151118013432_create_chats.rb:1:in `<top (required)>'
C:in `disable_ddl_transaction'
SQLite3::SQLException: no such table: main.conversations
C:/Users/Jason/Documents/GitHub/Planner/db/migrate/20151118013432_create_chats.rb:13:in `<class:CreateChats>'
C:/Users/Jason/Documents/GitHub/Planner/db/migrate/20151118013432_create_chats.rb:1:in `<top (required)>'
C:in `disable_ddl_transaction'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)

0 个答案:

没有答案