Sha256: c63c0c6feed8909346768bb64891517bfe7ae7496812a4c8f8a534ec01c0ea48

Contents?: true

Size: 468 Bytes

Versions: 12

Compression:

Stored size: 468 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 :secret
      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

12 entries across 10 versions & 5 rubygems

Version Path
houston-oauth-plugin-0.5.1 lib/generators/active_record/oauth_consumer_templates/migration.rb
oauth_consumer-0.1.3 lib/generators/active_record/oauth_consumer_templates/migration.rb
panjiva-oauth-plugin-0.4.1 lib/generators/active_record/oauth_consumer_templates/migration.rb
panjiva-oauth-plugin-0.4.1 generators/oauth_consumer/templates/migration.rb
oauth_consumer-0.1.2 lib/generators/active_record/oauth_consumer_templates/migration.rb
oauth_consumer-0.1.1 lib/generators/active_record/oauth_consumer_templates/migration.rb
oauth_consumer-0.1.0 lib/generators/active_record/oauth_consumer_templates/migration.rb
oauth-plugin-0.5.1 lib/generators/active_record/oauth_consumer_templates/migration.rb
oauth-plugin-0.5.0 lib/generators/active_record/oauth_consumer_templates/migration.rb
oauth-provider-0.5.0rc1 generators/oauth_consumer/templates/migration.rb
oauth-plugin-0.4.1 generators/oauth_consumer/templates/migration.rb
oauth-plugin-0.4.1 lib/generators/active_record/oauth_consumer_templates/migration.rb