Add EppSession for custom session management

This commit is contained in:
Martin Lensment 2014-06-27 13:39:16 +03:00
parent 3a57126e69
commit e9f23ba348
9 changed files with 92 additions and 2 deletions

View file

@ -0,0 +1,12 @@
class CreateEppSessions < ActiveRecord::Migration
def change
create_table :epp_sessions do |t|
t.string :session_id
t.text :data
t.timestamps
end
add_index :epp_sessions, :session_id, :unique => true
add_index :epp_sessions, :updated_at
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: 20140620130107) do
ActiveRecord::Schema.define(version: 20140627082711) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -61,6 +61,16 @@ ActiveRecord::Schema.define(version: 20140620130107) do
t.datetime "updated_at"
end
create_table "epp_sessions", force: true do |t|
t.string "session_id"
t.text "data"
t.datetime "created_at"
t.datetime "updated_at"
end
add_index "epp_sessions", ["session_id"], name: "index_epp_sessions_on_session_id", unique: true, using: :btree
add_index "epp_sessions", ["updated_at"], name: "index_epp_sessions_on_updated_at", using: :btree
create_table "epp_users", force: true do |t|
t.integer "registrar_id"
t.string "username"