Updates from the past fortnight

This commit is contained in:
Godwin
2015-04-14 19:41:46 -07:00
parent 37ee6cfee7
commit 14205f4586
28 changed files with 597 additions and 154 deletions
@@ -0,0 +1,12 @@
class CreateEmailConfirmations < ActiveRecord::Migration
def change
create_table :email_confirmations do |t|
t.string :token
t.integer :user_id
t.datetime :expiry
t.string :url
t.timestamps null: false
end
end
end
@@ -0,0 +1,5 @@
class AddIsTranslatorToUsers < ActiveRecord::Migration
def change
add_column :users, :is_translator, :boolean
end
end
+11 -1
View File
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20150315225844) do
ActiveRecord::Schema.define(version: 20150412203357) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -120,6 +120,15 @@ ActiveRecord::Schema.define(version: 20150315225844) do
t.date "created_at"
end
create_table "email_confirmations", force: :cascade do |t|
t.string "token"
t.integer "user_id"
t.datetime "expiry"
t.string "url"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "event_types", force: :cascade do |t|
t.string "slug", limit: 255
t.text "info"
@@ -264,6 +273,7 @@ ActiveRecord::Schema.define(version: 20150315225844) do
t.string "role", limit: 255
t.string "firstname", limit: 255
t.string "lastname", limit: 255
t.boolean "is_translator"
end
add_index "users", ["activation_token"], name: "index_users_on_activation_token", using: :btree