beast rev 2066
[beast-modified.git] / vendor / plugins / open_id_authentication / lib / generators / open_id_authentication_tables / templates / migration.rb
blob0be93a147b6090f0478a36c203d782e3da18b06b
1 class AddOpenIdAuthenticationTables < ActiveRecord::Migration
2   def self.up
3     create_table "open_id_authentication_associations", :force => true do |t|
4       t.column "server_url", :binary
5       t.column "handle", :string
6       t.column "secret", :binary
7       t.column "issued", :integer
8       t.column "lifetime", :integer
9       t.column "assoc_type", :string
10     end
12     create_table "open_id_authentication_nonces", :force => true do |t|
13       t.column "nonce", :string
14       t.column "created", :integer
15     end
17     create_table "open_id_authentication_settings", :force => true do |t|
18       t.column "setting", :string
19       t.column "value", :binary
20     end
21   end
23   def self.down
24     drop_table "open_id_authentication_associations"
25     drop_table "open_id_authentication_nonces"
26     drop_table "open_id_authentication_settings"
27   end
28 end