1 # frozen_string_literal: true
3 class DropOauth1Tables < ActiveRecord::Migration[7.1]
5 remove_index :oauth_nonces, [:nonce, :timestamp], :unique => true
7 drop_table :oauth_nonces do |t|
11 t.timestamps :null => true
14 remove_index :oauth_tokens, :token, :unique => true
16 drop_table :oauth_tokens do |t|
18 t.string :type, :limit => 20
19 t.integer :client_application_id
20 t.string :token, :limit => 50
21 t.string :secret, :limit => 50
22 t.timestamp :authorized_at, :invalidated_at
23 t.timestamps :null => true
26 remove_index :client_applications, :key, :unique => true
28 drop_table :client_applications do |t|
32 t.string :callback_url
33 t.string :key, :limit => 50
34 t.string :secret, :limit => 50
37 t.timestamps :null => true