diff options
author | Raphael Sofaer <raphael@joindiaspora.com> | 2011-06-03 23:04:18 +0400 |
---|---|---|
committer | Raphael Sofaer <raphael@joindiaspora.com> | 2011-06-03 23:05:57 +0400 |
commit | 686464c36e8b3ddad583ab837b89b95580747a7e (patch) | |
tree | c2cfd3710e59674deba9cbcfd298a760f35f6bed /db | |
parent | 7204ef8e261a4ba45b00e9d6b973d8c737edc5e7 (diff) |
move account deletion out of a tranaction and into a job
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20110603181015_lockable_users.rb | 9 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/db/migrate/20110603181015_lockable_users.rb b/db/migrate/20110603181015_lockable_users.rb new file mode 100644 index 000000000..9aaba72e0 --- /dev/null +++ b/db/migrate/20110603181015_lockable_users.rb @@ -0,0 +1,9 @@ +class LockableUsers < ActiveRecord::Migration + def self.up + add_column :users, :locked_at, :datetime + end + + def self.down + remove_column :users, :locked_at + end +end diff --git a/db/schema.rb b/db/schema.rb index 4ccf06d4b..84b6fe187 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20110527135552) do +ActiveRecord::Schema.define(:version => 20110603181015) do create_table "aspect_memberships", :force => true do |t| t.integer "aspect_id", :null => false @@ -369,6 +369,7 @@ ActiveRecord::Schema.define(:version => 20110527135552) do t.integer "invited_by_id" t.string "invited_by_type" t.string "authentication_token", :limit => 30 + t.datetime "locked_at" end add_index "users", ["authentication_token"], :name => "index_users_on_authentication_token", :unique => true |