Skip to content

Instantly share code, notes, and snippets.

@chrishomer
Created September 28, 2013 23:49
Show Gist options
  • Save chrishomer/6747883 to your computer and use it in GitHub Desktop.
Save chrishomer/6747883 to your computer and use it in GitHub Desktop.
class CreateMyDropboxSessions < ActiveRecord::Migration
def change
create_table :my_dropbox_sessions do |t|
t.string :app_key
t.string :app_secret
t.string :account_email
t.boolean :authorized, default: false
t.text :serialized_session
t.timestamps
end
add_index :my_dropbox_sessions, :account_email
add_index :my_dropbox_sessions, :authorized
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment