class CreateOauth2Clients

**************************************************************************

**************************************************************************

Public Class Methods

down() click to toggle source
# File lib/modules/migrations/05_create_oauth2_clients.rb, line 41
def self.down
  drop_table :oauth2_clients
end
up() click to toggle source
# File lib/modules/migrations/05_create_oauth2_clients.rb, line 29
def self.up
  create_table :oauth2_clients do |t|
    t.string     :name
    t.string     :client_id
    t.string     :client_secret_hash
    t.string     :redirect_uri
    t.string     :basic_code
    t.timestamps
  end
  add_index :oauth2_clients, :client_id, :unique => true
end