Class: AddOpenIdAuthenticationTables

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/db/migrate/20091227213928_add_open_id_authentication_tables.rb

Class Method Summary collapse

Class Method Details

.downObject



16
17
18
19
# File 'lib/db/migrate/20091227213928_add_open_id_authentication_tables.rb', line 16

def self.down
  drop_table :open_id_authentication_associations
  drop_table :open_id_authentication_nonces
end

.upObject



2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/db/migrate/20091227213928_add_open_id_authentication_tables.rb', line 2

def self.up
  create_table :open_id_authentication_associations, :force => true do |t|
    t.integer :issued, :lifetime
    t.string :handle, :assoc_type
    t.binary :server_url, :secret
  end

  create_table :open_id_authentication_nonces, :force => true do |t|
    t.integer :timestamp, :null => false
    t.string :server_url, :null => true
    t.string :salt, :null => false
  end
end