]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/20201004105659_create_doorkeeper_tables.rb
Update to rails 7.0.2.2
[rails.git] / db / migrate / 20201004105659_create_doorkeeper_tables.rb
index 66456bc2c5d7ec26da4470e195649059c2486e94..d9a6435548f56ea21e87bdb179a7791a2ab2cab3 100644 (file)
@@ -18,7 +18,7 @@ class CreateDoorkeeperTables < ActiveRecord::Migration[6.0]
 
     create_table :oauth_access_grants do |t|
       t.references :resource_owner, :null => false, :type => :bigint
-      t.references :application, :null => false
+      t.references :application, :null => false, :type => :bigint
       t.string :token, :null => false
       t.integer :expires_in, :null => false
       t.text :redirect_uri, :null => false
@@ -35,7 +35,7 @@ class CreateDoorkeeperTables < ActiveRecord::Migration[6.0]
 
     create_table :oauth_access_tokens do |t|
       t.references :resource_owner, :index => true, :type => :bigint
-      t.references :application, :null => false
+      t.references :application, :null => false, :type => :bigint
       t.string :token, :null => false
       t.string :refresh_token
       t.integer :expires_in