Sha256: cd82c6020c0f0fc55d0ec6fd3f4c27deec3bda28477947cbd623e5431e68f5b3

Contents?: true

Size: 425 Bytes

Versions: 34

Compression:

Stored size: 425 Bytes

Contents

class CreateFacebookTokens < ActiveRecord::Migration
  def self.up
    create_table :facebook_tokens do |t|
      t.integer :user_id, :null => false
      t.string :external_uid, :limit => 32, :null => false
      t.string :access_token, :limit => 128, :null => false
    end
    
    add_index :facebook_tokens, :external_uid, :unique => true, :null => false
  end

  def self.down
    drop_table :facebook_tokens
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
authpwn_rails-0.9.6 lib/authpwn_rails/generators/templates/002_create_facebook_tokens.rb
authpwn_rails-0.9.5 lib/authpwn_rails/generators/templates/002_create_facebook_tokens.rb
authpwn_rails-0.9.4 lib/authpwn_rails/generators/templates/002_create_facebook_tokens.rb
authpwn_rails-0.9.3 lib/authpwn_rails/generators/templates/002_create_facebook_tokens.rb
authpwn_rails-0.9.2 lib/authpwn_rails/generators/templates/002_create_facebook_tokens.rb
authpwn_rails-0.9.1 lib/authpwn_rails/generators/templates/002_create_facebook_tokens.rb
authpwn_rails-0.9.0 lib/authpwn_rails/generators/templates/002_create_facebook_tokens.rb
authpwn_rails-0.8.3 lib/authpwn_rails/generators/templates/002_create_facebook_tokens.rb
authpwn_rails-0.8.2 lib/authpwn_rails/generators/templates/002_create_facebook_tokens.rb
authpwn_rails-0.8.1 lib/authpwn_rails/generators/templates/002_create_facebook_tokens.rb
authpwn_rails-0.8.0 lib/authpwn_rails/generators/templates/002_create_facebook_tokens.rb
authpwn_rails-0.7.5 lib/authpwn_rails/generators/templates/002_create_facebook_tokens.rb
authpwn_rails-0.7.4 lib/authpwn_rails/generators/templates/002_create_facebook_tokens.rb
authpwn_rails-0.7.3 lib/authpwn_rails/generators/templates/002_create_facebook_tokens.rb
authpwn_rails-0.7.2 lib/authpwn_rails/generators/templates/002_create_facebook_tokens.rb
authpwn_rails-0.7.1 lib/authpwn_rails/generators/templates/002_create_facebook_tokens.rb
authpwn_rails-0.7.0 lib/authpwn_rails/generators/templates/002_create_facebook_tokens.rb
authpwn_rails-0.6.0 lib/authpwn_rails/generators/templates/002_create_facebook_tokens.rb
authpwn_rails-0.5.6 lib/authpwn_rails/generators/templates/002_create_facebook_tokens.rb
authpwn_rails-0.5.5 lib/authpwn_rails/generators/templates/002_create_facebook_tokens.rb