Registrant domain update confirmation

This commit is contained in:
Priit Tark 2015-05-19 15:05:52 +03:00
parent 254849494f
commit ee39181094
16 changed files with 236 additions and 10 deletions

View file

@ -0,0 +1,5 @@
class AddAcitonToRegistrantVerification < ActiveRecord::Migration
def change
add_column :registrant_verifications, :action, :string
end
end

View file

@ -0,0 +1,6 @@
class AddDomainIdToRegistrantVerifications < ActiveRecord::Migration
def change
add_column :registrant_verifications, :domain_id, :integer
add_index :registrant_verifications, :domain_id
end
end

View file

@ -0,0 +1,5 @@
class AddActionTypeToRegistrantVerifications < ActiveRecord::Migration
def change
add_column :registrant_verifications, :action_type, :string
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: 20150518084324) do
ActiveRecord::Schema.define(version: 20150519102521) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -845,9 +845,13 @@ ActiveRecord::Schema.define(version: 20150518084324) do
t.string "verification_token"
t.datetime "created_at"
t.datetime "updated_at"
t.string "action"
t.integer "domain_id"
t.string "action_type"
end
add_index "registrant_verifications", ["created_at"], name: "index_registrant_verifications_on_created_at", using: :btree
add_index "registrant_verifications", ["domain_id"], name: "index_registrant_verifications_on_domain_id", using: :btree
create_table "registrars", force: :cascade do |t|
t.string "name"