Sha256: 9371e8af239adef4569ef0ae7f51981d0a6cdeebb04cee78e2038a3882bbd0bc

Contents?: true

Size: 550 Bytes

Versions: 28

Compression:

Stored size: 550 Bytes

Contents

class CreateOauthConsumerTokens < ActiveRecord::Migration
  def self.up
    create_table :consumer_tokens do |t|
      t.integer :user_id
      t.string :type, :limit => 30
      t.string :token, :limit => 1024 # This has to be huge because of Yahoo's excessively large tokens
      t.string :refresh_token
      t.string :secret
      t.integer :expires_at
      t.string :expires_in
      t.timestamps
    end

    add_index :consumer_tokens, :token, :unique => true, :length => 100
  end

  def self.down
    drop_table :consumer_tokens
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
houston-core-0.9.2 db/migrate/20131216014505_create_oauth_consumer_tokens.rb
houston-core-0.9.1 db/migrate/20131216014505_create_oauth_consumer_tokens.rb
houston-core-0.9.0 db/migrate/20131216014505_create_oauth_consumer_tokens.rb
houston-core-0.9.0.rc1 db/migrate/20131216014505_create_oauth_consumer_tokens.rb
houston-core-0.8.4 db/migrate/20131216014505_create_oauth_consumer_tokens.rb
houston-core-0.8.3 db/migrate/20131216014505_create_oauth_consumer_tokens.rb
houston-core-0.8.2 db/migrate/20131216014505_create_oauth_consumer_tokens.rb
houston-core-0.8.1 db/migrate/20131216014505_create_oauth_consumer_tokens.rb
houston-core-0.8.0 db/migrate/20131216014505_create_oauth_consumer_tokens.rb
houston-core-0.8.0.pre2 db/migrate/20131216014505_create_oauth_consumer_tokens.rb
houston-core-0.8.0.pre db/migrate/20131216014505_create_oauth_consumer_tokens.rb
houston-core-0.7.0 db/migrate/20131216014505_create_oauth_consumer_tokens.rb
houston-core-0.7.0.beta4 db/migrate/20131216014505_create_oauth_consumer_tokens.rb
houston-core-0.7.0.beta3 db/migrate/20131216014505_create_oauth_consumer_tokens.rb
houston-core-0.7.0.beta2 db/migrate/20131216014505_create_oauth_consumer_tokens.rb
houston-core-0.7.0.beta db/migrate/20131216014505_create_oauth_consumer_tokens.rb
houston-core-0.6.3 db/migrate/20131216014505_create_oauth_consumer_tokens.rb
houston-core-0.6.2 db/migrate/20131216014505_create_oauth_consumer_tokens.rb
houston-core-0.6.1 db/migrate/20131216014505_create_oauth_consumer_tokens.rb
houston-core-0.6.0 db/migrate/20131216014505_create_oauth_consumer_tokens.rb