私の移行は次のとおりです。Railsのマイグレーション
class CreateUsers < ActiveRecord::Migration
def self.up
create_table :users do |t|
t.string :email
t.string :password
t.string :name
t.boolean :male
t.boolean :admin
t.timestamps
end
end
def self.down
drop_table :users
end
end
私はスクリプト/コンソールおよびタイプ「ユーザー」に行き、Railsはクラスを認識しません。