spec/dummy/config/initializers/db.rb in doorkeeper-sequel-2.2.0 vs spec/dummy/config/initializers/db.rb in doorkeeper-sequel-2.3.0

- old
+ new

@@ -26,11 +26,12 @@ DB.create_table :oauth_access_grants do primary_key :id column :application_id, Integer - column :resource_owner_id, Integer, null: false + column :resource_owner_id, Integer, null: false, index: true + column :resource_owner_type, String, index: true column :token, String, size: 255, null: false, index: { unique: true } column :expires_in, Integer, null: false column :redirect_uri, String, null: false column :created_at, DateTime, null: false @@ -44,9 +45,10 @@ DB.create_table :oauth_access_tokens do primary_key :id column :application_id, Integer column :resource_owner_id, Integer, index: true + column :resource_owner_type, String, index: true # If you use a custom token generator you may need to change this column # from string to text, so that it accepts tokens larger than 255 # characters. More info on custom token generators in: # https://github.com/doorkeeper-gem/doorkeeper/tree/v3.0.0.rc1#custom-access-token-generator