Sha256: 73d571f5b3657d6b8710e46dc6a0d47e94b2cd3d349c707f60f1a9e253feb5b2

Contents?: true

Size: 456 Bytes

Versions: 4

Compression:

Stored size: 456 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
    
  end

  def self.down
    drop_table :consumer_tokens
  end

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
le1t0-oauth-plugin-0.3.14.001 generators/oauth_consumer/templates/migration.rb
oauth-plugin-0.3.14 generators/oauth_consumer/templates/migration.rb
oauth-plugin-0.3.13 generators/oauth_consumer/templates/migration.rb
oauth-plugin-0.3.12 generators/oauth_consumer/templates/migration.rb