Module: ArOpenidStore::Migration

Defined in:
lib/ar_openid_store/migration.rb

Instance Method Summary collapse

Instance Method Details

#create_openid_tablesObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/ar_openid_store/migration.rb', line 5

def create_openid_tables
  create_table "open_id_associations", :force => true do |t|
    t.column "server_url", :binary
    t.column "handle", :string
    t.column "secret", :binary
    t.column "issued", :integer
    t.column "lifetime", :integer
    t.column "assoc_type", :string
  end

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

#drop_openid_tablesObject



22
23
24
25
# File 'lib/ar_openid_store/migration.rb', line 22

def drop_openid_tables
  drop_table "open_id_associations"
  drop_table "open_id_nonces"
end