diff --git a/app/models/account_deletion.rb b/app/models/account_deletion.rb new file mode 100644 index 000000000..f62c83a72 --- /dev/null +++ b/app/models/account_deletion.rb @@ -0,0 +1,7 @@ +# Copyright (c) 2010-2011, Diaspora Inc. This file is +# licensed under the Affero General Public License version 3 or later. See +# the COPYRIGHT file. + +class AccountDeletion < ActiveRecord::Base + +end diff --git a/db/migrate/20111109023618_create_account_deletions.rb b/db/migrate/20111109023618_create_account_deletions.rb new file mode 100644 index 000000000..4785c1402 --- /dev/null +++ b/db/migrate/20111109023618_create_account_deletions.rb @@ -0,0 +1,12 @@ +class CreateAccountDeletions < ActiveRecord::Migration + def self.up + create_table :account_deletions do |t| + t.string :diaspora_id + t.integer :person_id + end + end + + def self.down + drop_table :account_deletions + end +end diff --git a/db/schema.rb b/db/schema.rb index 7c2d8a731..1d3af3eaf 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,12 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20111103184050) do +ActiveRecord::Schema.define(:version => 20111109023618) do + + create_table "account_deletion", :force => true do |t| + t.string "diaspora_id" + t.integer "person_id" + end create_table "aspect_memberships", :force => true do |t| t.integer "aspect_id", :null => false diff --git a/spec/models/account_deletion_spec.rb b/spec/models/account_deletion_spec.rb new file mode 100644 index 000000000..f5fb204f5 --- /dev/null +++ b/spec/models/account_deletion_spec.rb @@ -0,0 +1,14 @@ +# Copyright (c) 2010-2011, Diaspora Inc. This file is +# licensed under the Affero General Public License version 3 or later. See +# the COPYRIGHT file. + +require 'spec_helper' + +describe AccountDeletion do + + it 'gets initialized with diaspora_id' do + AccountDeletion.new(:diaspora_id => alice.person.diaspora_handle).should be_true + end + + +end