我是RubyonRails的新手,我遇到了一个小错误,我相信你能帮我解决。
Rails无法生成
enable_extension "plpgsql"
在R.S.
我生成了这样的模型:
rails generate model CreateUsers last_name:string first_name:string birthday:date email:string password_digest:string
我跑
rails db:migrate
我得到这个作为回报
...
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2019_01_21_134353) do
create_table "create_users", force: :cascade do |t|
t.string "last_name"
t.string "first_name"
t.date "birthdate"
t.string "email"
t.string "password_digest"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
end
没有
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
我试着丢下桌子跑了
rake db:rollback
rake db:migrate
仍不包括在schema.rb中
谢谢。