Update oauth models and controllers for OAuth 1.0a support
This commit is contained in:
parent
c08f9a2f03
commit
1c3a9ee62b
5 changed files with 67 additions and 8 deletions
11
db/migrate/20100910084426_add_callback_to_oauth_tokens.rb
Normal file
11
db/migrate/20100910084426_add_callback_to_oauth_tokens.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class AddCallbackToOauthTokens < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column :oauth_tokens, :callback_url, :string
|
||||
add_column :oauth_tokens, :verifier, :string, :limit => 20
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column :oauth_tokens, :callback_url
|
||||
remove_column :oauth_tokens, :verifier
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue