create_doorkeeper_tables из spree_api отсутствует в spree-3.7

Я работаю над обновлением spree 3.0 до 3.7. Мне сейчас очень трудно обновить веселье. Мое приложение ранее работало на версии Ruby 2.2.0 и версии Rails 4.2.0. Сейчас обновляю рубин с версии 2.6.2 и rails 5.2.2. Во время этого процесса я также обновляю версию spree с 3.0 до 3.7.

У меня проблема с миграцией, когда я выполняю bundle exec rails railties:install:migrations Я получаю сообщение об ошибке create_doorkeeper_tables

Ошибка:

 Migration 20180320110726_create_doorkeeper_tables.rb from spree_api has been skipped. Migration with the same name already exists. 

полная обратная трассировка:

Перенос таблицы привратника уже доступен в моей базе данных.

class CreateDoorkeeperTables < ActiveRecord::Migration
   def change
     create_table :oauth_applications do |t|
        t.string  :name,         null: false
        t.string  :uid,          null: false
        t.string  :secret,       null: false
        t.text    :redirect_uri, null: false
        t.string  :scopes,       null: false, default: ''
        t.timestamps
     end

     add_index :oauth_applications, :uid, unique: true

     create_table :oauth_access_grants do |t|
        t.integer  :resource_owner_id, null: false
        t.integer  :application_id,    null: false
        t.string   :token,             null: false
        t.integer  :expires_in,        null: false
        t.text     :redirect_uri,      null: false
        t.datetime :created_at,        null: false
        t.datetime :revoked_at
        t.string   :scopes
     end

     add_index :oauth_access_grants, :token, unique: true

     create_table :oauth_access_tokens do |t|
        t.integer  :resource_owner_id
        t.integer  :application_id
        t.string   :token,             null: false
        t.string   :refresh_token
        t.integer  :expires_in
        t.datetime :revoked_at
        t.datetime :created_at,        null: false
        t.string   :scopes
     end

     add_index :oauth_access_tokens, :token, unique: true
     add_index :oauth_access_tokens, :resource_owner_id
     add_index :oauth_access_tokens, :refresh_token, unique: true
  end
end

0 ответов

Другие вопросы по тегам