3
こんにちは私は、Michael Hartlのチュートリアルに続いて、レールでコーディングを始めました。ActiveRecord :: Fixture :: FixtureError:テーブル「users」に「monkey」という名前の列がありません
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
marwane:
name: Marwane Chahoud
email: [email protected]
password_digest: <%= User.digest('password') %>
monkey:
name: Sterling Archer
email: [email protected]
password_digest: <%= User.digest('password') %>
と私のDBスキーマは次のとおりです:あるdb/migrate/xxxxxx_create_users.rb
:
class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
t.string :name
t.string :email
t.timestamps null: false
end
end
end
私はRubyのバージョン使用しています:ruby 2.2.4p230 (2015-12-16 revision 53155) [i386-mingw32]
とレールバージョン:Rails 4.2.6
お願いします。