我正在新兵训练营学习Ruby。这个周末太疯狂了,我在航站楼遇到了这个错误。试图解决此问题。删除Gemfile,重新安装捆绑软件。即使重整整个桌子,也仍然不让我过去。继续显示为Could not find the table
-在Google上搜索了此问题。好像大多数开发人员已经在Rails上一样,作为一个初学者,如果有人可以帮助我,我将不胜感激。
我尝试了所有
rake db:reset
rake db:migrate # Migrated each time after created the file
rake db:test:prepare # even I tried to reload the test
ActiveRecord::StatementInvalid:
Could not find table 'costume_stores'
# /Users/akramhelil/.rvm/gems/ruby-2.3.3/gems/activerecord-5.2.2/lib/active_record/connection_adapters/sqlite3_adapter.rb:397:in `table_structure'
# /Users/akramhelil/.rvm/gems/ruby-2.3.3/gems/activerecord-5.2.2/lib/active_record/connection_adapters/abstract/schema_statements.rb:113:in `columns'
# /Users/akramhelil/.rvm/gems/ruby-2.3.3/gems/activerecord-5.2.2/lib/active_record/connection_adapters/schema_cache.rb:69:in `columns'
# /Users/akramhelil/.rvm/gems/ruby-2.3.3/gems/activerecord-5.2.2/lib/active_record/connection_adapters/schema_cache.rb:75:in `columns_hash'
# /Users/akramhelil/.rvm/gems/ruby-2.3.3/gems/activerecord-5.2.2/lib/active_record/model_schema.rb:466:in `load_schema!'
# /Users/akramhelil/.rvm/gems/ruby-2.3.3/gems/activerecord-5.2.2/lib/active_record/attributes.rb:234:in `load_schema!'
# /Users/akramhelil/.rvm/gems/ruby-2.3.3/gems/activerecord-5.2.2/lib/active_record/attribute_decorators.rb:51:in `load_schema!'
# /Users/akramhelil/.rvm/gems/ruby-2.3.3/gems/activerecord-5.2.2/lib/active_record/model_schema.rb:459:in `block in load_schema'
# /Users/akramhelil/.rvm/gems/ruby-2.3.3/gems/activerecord-5.2.2/lib/active_record/model_schema.rb:456:in `load_schema'
# /Users/akramhelil/.rvm/gems/ruby-2.3.3/gems/activerecord-5.2.2/lib/active_record/model_schema.rb:346:in `attribute_types'
# /Users/akramhelil/.rvm/gems/ruby-2.3.3/gems/activerecord-5.2.2/lib/active_record/attribute_methods.rb:230:in `has_attribute?'
# /Users/akramhelil/.rvm/gems/ruby-2.3.3/gems/activerecord-5.2.2/lib/active_record/inheritance.rb:55:in `new'
# /Users/akramhelil/.rvm/gems/ruby-2.3.3/gems/activerecord-5.2.2/lib/active_record/persistence.rb:35:in `create'
# ./spec/costume_store_spec.rb:6:in `block (2 levels) in <top (required)>'
这是基于测试的应用