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