Commit 3d25d33d324f836a67e719260f7e7e1978222440
- Date: Sun Jun 01 18:23:57 +0000 2008
- Committer: Patrick Aljord (patcito@gmail.com)
- Author: Patrick Aljord (patcito@gmail.com)
- Commit SHA1: 3d25d33d324f836a67e719260f7e7e1978222440
- Tree SHA1: 6b180da0579e021567c20c297225a5eb72dc0abc
updated openid migrations
Commit diff
| |   |
| 1 | class AddIdentityUrlToUsers < ActiveRecord::Migration |
| 2 | def self.up |
| 3 | add_column :users, :identity_url, :text |
| 4 | end |
| 5 | |
| 6 | def self.down |
| 7 | remove_column :users, :identity_url |
| 8 | end |
| 9 | end |
| 10 | |
| toggle raw diff |
--- /dev/null
+++ b/db/migrate/027_add_identity_url_to_users.rb
@@ -0,0 +1,10 @@
+class AddIdentityUrlToUsers < ActiveRecord::Migration
+ def self.up
+ add_column :users, :identity_url, :text
+ end
+
+ def self.down
+ remove_column :users, :identity_url
+ end
+end
+ |
| |   |
| 1 | class AddOpenIdAuthenticationTables < ActiveRecord::Migration |
| 2 | def self.up |
| 3 | create_table :open_id_authentication_associations, :force => true do |t| |
| 4 | t.integer :issued, :lifetime |
| 5 | t.string :handle, :assoc_type |
| 6 | t.binary :server_url, :secret |
| 7 | end |
| 8 | |
| 9 | create_table :open_id_authentication_nonces, :force => true do |t| |
| 10 | t.integer :timestamp, :null => false |
| 11 | t.string :server_url, :null => true |
| 12 | t.string :salt, :null => false |
| 13 | end |
| 14 | end |
| 15 | |
| 16 | def self.down |
| 17 | drop_table :open_id_authentication_associations |
| 18 | drop_table :open_id_authentication_nonces |
| 19 | end |
| 20 | end |
| toggle raw diff |
--- /dev/null
+++ b/db/migrate/028_add_open_id_authentication_tables.rb
@@ -0,0 +1,20 @@
+class AddOpenIdAuthenticationTables < ActiveRecord::Migration
+ 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
+
+ def self.down
+ drop_table :open_id_authentication_associations
+ drop_table :open_id_authentication_nonces
+ end
+end |