Sha256: c7101ee62cc76909206897df8df938aeec31fe3b9e069736325489fad770e336
Contents?: true
Size: 452 Bytes
Versions: 2
Compression:
Stored size: 452 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 end def self.down drop_table :consumer_tokens end end
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
oauth-plugin-0.4.0 | generators/oauth_consumer/templates/migration.rb |
oauth-plugin-0.4.0 | lib/generators/active_record/oauth_consumer_templates/migration.rb |