Sha256: 11a222338b52bca0e80ee714955a5b92b888b6520312475c8073394b93396478
Contents?: true
Size: 564 Bytes
Versions: 37
Compression:
Stored size: 564 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 :token, :limit => 255 # if the field is to long we can't create an index. Making it smaller 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
37 entries across 21 versions & 2 rubygems