# 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: 20151102165925) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" enable_extension "uuid-ossp" create_table "push_type_assets", id: :uuid, default: "uuid_generate_v4()", force: :cascade do |t| t.string "file_uid" t.string "file_name" t.integer "file_size" t.string "file_ext" t.string "mime_type" t.string "description" t.uuid "uploader_id" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.datetime "deleted_at" t.string "tags", array: true end create_table "push_type_node_hierarchies", id: false, force: :cascade do |t| t.uuid "ancestor_id", null: false t.uuid "descendant_id", null: false t.integer "generations", null: false end add_index "push_type_node_hierarchies", ["ancestor_id", "descendant_id", "generations"], name: "node_anc_desc_idx", unique: true, using: :btree add_index "push_type_node_hierarchies", ["descendant_id"], name: "node_desc_idx", using: :btree create_table "push_type_nodes", id: :uuid, default: "uuid_generate_v4()", force: :cascade do |t| t.string "type" t.string "title" t.string "slug" t.jsonb "field_store", default: {}, null: false t.uuid "parent_id" t.integer "sort_order" t.integer "status" t.datetime "published_at" t.datetime "published_to" t.uuid "creator_id" t.uuid "updater_id" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.datetime "deleted_at" end create_table "push_type_taxonomies", id: :uuid, default: "uuid_generate_v4()", force: :cascade do |t| t.string "type" t.string "title" t.string "slug" t.uuid "parent_id" t.integer "sort_order" t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "push_type_taxonomy_hierarchies", id: false, force: :cascade do |t| t.uuid "ancestor_id", null: false t.uuid "descendant_id", null: false t.integer "generations", null: false end add_index "push_type_taxonomy_hierarchies", ["ancestor_id", "descendant_id", "generations"], name: "taxonomy_anc_desc_idx", unique: true, using: :btree add_index "push_type_taxonomy_hierarchies", ["descendant_id"], name: "taxonomy_desc_idx", using: :btree create_table "push_type_users", id: :uuid, default: "uuid_generate_v4()", force: :cascade do |t| t.string "name" t.string "email" t.jsonb "field_store", default: {}, null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false end end