t.timestamps
end
add_index :client_applications, :key, :unique => true
-
+
create_table :oauth_tokens do |t|
t.integer :user_id
t.string :type, :limit => 20
t.timestamp :authorized_at, :invalidated_at
t.timestamps
end
-
+
add_index :oauth_tokens, :token, :unique => true
-
+
create_table :oauth_nonces do |t|
t.string :nonce
t.integer :timestamp
t.timestamps
end
add_index :oauth_nonces, [:nonce, :timestamp], :unique => true
-
end
def self.down
drop_table :oauth_tokens
drop_table :oauth_nonces
end
-
end