Skip to content

Instantly share code, notes, and snippets.

@barmstrong
barmstrong / 20110629202502_create_oauth2s.rb
Created June 30, 2011 01:38
sample code for setting up the Google Prediction API in a background process using OAuth2 and the google-api-ruby-client
class CreateOauth2s < ActiveRecord::Migration
def self.up
create_table :oauth2s do |t|
t.string :api
t.string :refresh_token
t.string :access_token
t.datetime :expires_at
t.timestamps
end