Ruby中的“ oracle_enhanced”适配器错误不支持的耙任务(无Rails)

时间:2019-04-16 13:37:51

标签: ruby oracle orm rake grape

我是Ruby的新手。我正在尝试使用安装在机架上的Ruby Grape API构建一个小型应用程序。我尝试将ActiveRecord与standalone_migrations gem一起使用以实现ORM,但是在运行命令bundle exec rake db:create

时出现以下错误
  

'oracle_enhanced'适配器不支持的耙任务
  无法建立   “ test_music_development”数据库。请检查您的配置。

下面是我的config.yml,GemFile和RakeFile文件:

#config.yml
default: &default
adapter: oracle_enhanced
encoding: unicode
pool: 5
host: localhost

development: 
<<: *default
database: test_music_development
username: SYSTEM
password: Test2019



#gemfile
# frozen_string_literal: true

source "https://rubygems.org"


gem 'grape'
gem 'activerecord'
gem "activerecord-oracle_enhanced-adapter"

gem 'standalone_migrations'
gem 'ruby-oci8'
gem 'rake'

# Rakefile require 'standalone_migrations' StandaloneMigrations::Tasks.load_tasks

我缺少任何配置步骤吗?

0 个答案:

没有答案