1 class DropOauth1Tables < ActiveRecord::Migration[7.1]
 
   3     remove_index :oauth_nonces, [:nonce, :timestamp], :unique => true
 
   5     drop_table :oauth_nonces do |t|
 
   9       t.timestamps :null => true
 
  12     remove_index :oauth_tokens, :token, :unique => true
 
  14     drop_table :oauth_tokens do |t|
 
  16       t.string :type, :limit => 20
 
  17       t.integer :client_application_id
 
  18       t.string :token, :limit => 50
 
  19       t.string :secret, :limit => 50
 
  20       t.timestamp :authorized_at, :invalidated_at
 
  21       t.timestamps :null => true
 
  24     remove_index :client_applications, :key, :unique => true
 
  26     drop_table :client_applications do |t|
 
  30       t.string :callback_url
 
  31       t.string :key, :limit => 50
 
  32       t.string :secret, :limit => 50
 
  35       t.timestamps :null => true