Add actions to set force delete #2624

This commit is contained in:
Martin Lensment 2015-06-10 19:15:40 +03:00
parent 9bd832278c
commit ba5be7b4f4
9 changed files with 101 additions and 24 deletions

View file

@ -0,0 +1,5 @@
class AddForceDeleteAtToDomain < ActiveRecord::Migration
def change
add_column :domains, :force_delete_at, :datetime
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20150610112238) do
ActiveRecord::Schema.define(version: 20150610144547) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -306,6 +306,7 @@ ActiveRecord::Schema.define(version: 20150610112238) do
t.datetime "registrant_verification_asked_at"
t.string "registrant_verification_token"
t.json "pending_json"
t.datetime "force_delete_at"
end
add_index "domains", ["delete_at"], name: "index_domains_on_delete_at", using: :btree