Update oauth models and controllers for OAuth 1.0a support

This commit is contained in:
Tom Hughes 2010-09-10 10:31:44 +01:00
parent c08f9a2f03
commit 1c3a9ee62b
5 changed files with 67 additions and 8 deletions

View 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