Skip to content

Instantly share code, notes, and snippets.

@CallumCarmicheal
Last active September 1, 2015 16:48
Show Gist options
  • Save CallumCarmicheal/39d1806e3e45b0282cda to your computer and use it in GitHub Desktop.
Save CallumCarmicheal/39d1806e3e45b0282cda to your computer and use it in GitHub Desktop.
# encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20150831140338) do
create_table "friendships", force: :cascade do |t|
t.integer "friendable_id"
t.string "friendable_type"
t.integer "friend_id"
t.string "status"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "languages", force: :cascade do |t|
t.string "name"
t.boolean "learned"
t.integer "profile_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
add_index "languages", ["profile_id"], name: "index_languages_on_profile_id"
create_table "profiles", force: :cascade do |t|
t.string "name", default: "Anonymous"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "avatar_file_name"
t.string "avatar_content_type"
t.integer "avatar_file_size"
t.datetime "avatar_updated_at"
t.integer "user_id"
t.string "skype"
t.string "twitter"
t.string "github"
t.string "livecodingtv"
t.string "born_country"
t.integer "born_city"
t.string "residence_country"
t.integer "residence_city"
t.string "status"
t.integer "sex"
end
add_index "profiles", ["user_id"], name: "index_profiles_on_user_id"
create_table "users", force: :cascade do |t|
t.string "email", default: "", null: false
t.string "encrypted_password", default: "", null: false
t.string "reset_password_token"
t.datetime "reset_password_sent_at"
t.datetime "remember_created_at"
t.integer "sign_in_count", default: 0, null: false
t.datetime "current_sign_in_at"
t.datetime "last_sign_in_at"
t.string "current_sign_in_ip"
t.string "last_sign_in_ip"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "loginHASH", force: :cascade do |t|
t.string "hash", null: false
t.datetime "created_at", null: false
t.datetime "ends_on", null: false
t.string "email" null: false
end
add_index "loginHASH", ["hash"], name: "hash_unique", unique: true
add_index "users", ["email"], name: "index_users_on_email", unique: true
add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment