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

Version Path
muck-invites-3.4.1 test/db/migrate/20091205001023_create_oauth_consumer_tokens.rb
muck-invites-3.0.0 test/rails_test/db/migrate/20091205001023_create_oauth_consumer_tokens.rb
muck-oauth-0.2.4 test/rails_root/db/migrate/20091205001023_create_oauth_consumer_tokens.rb
muck-oauth-0.2.4 db/migrate/20091205001023_create_oauth_consumer_tokens.rb
muck-oauth-0.2.3 test/rails_root/db/migrate/20091205001023_create_oauth_consumer_tokens.rb
muck-oauth-0.2.3 db/migrate/20091205001023_create_oauth_consumer_tokens.rb
muck-invites-0.1.12 test/rails_root/db/migrate/20091205001023_create_oauth_consumer_tokens.rb
muck-oauth-0.2.2 db/migrate/20091205001023_create_oauth_consumer_tokens.rb
muck-oauth-0.2.2 test/rails_root/db/migrate/20091205001023_create_oauth_consumer_tokens.rb
muck-oauth-0.2.1 test/rails_root/db/migrate/20091205001023_create_oauth_consumer_tokens.rb
muck-oauth-0.2.1 db/migrate/20091205001023_create_oauth_consumer_tokens.rb
muck-oauth-0.2.0 test/rails_root/db/migrate/20091205001023_create_oauth_consumer_tokens.rb
muck-oauth-0.2.0 db/migrate/20091205001023_create_oauth_consumer_tokens.rb
muck-invites-0.1.11 test/rails_root/db/migrate/20091205001023_create_oauth_consumer_tokens.rb
muck-oauth-0.1.11 db/migrate/20091205001023_create_oauth_consumer_tokens.rb
muck-oauth-0.1.11 test/rails_root/db/migrate/20091205001023_create_oauth_consumer_tokens.rb
muck-invites-0.1.10 test/rails_root/db/migrate/20091205001023_create_oauth_consumer_tokens.rb
muck-oauth-0.1.9 test/rails_root/db/migrate/20091205001023_create_oauth_consumer_tokens.rb
muck-oauth-0.1.9 db/migrate/20091205001023_create_oauth_consumer_tokens.rb
muck-oauth-0.1.8 db/migrate/20091205001023_create_oauth_consumer_tokens.rb