Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
126 lines (108 sloc) 4.49 KB
# 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: 20170417094158) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
create_table "builds", force: :cascade do |t|
t.integer "warning_count"
t.integer "repository_id"
t.string "aasm_state"
t.datetime "created_at"
t.datetime "updated_at"
t.string "last_commit_id"
t.text "last_commit_message"
t.integer "position"
t.integer "duration", default: 0
t.datetime "finished_at"
t.string "branch", default: "master", null: false
end
add_index "builds", ["repository_id"], name: "index_builds_on_repository_id", using: :btree
create_table "categories", force: :cascade do |t|
t.string "name"
end
create_table "configurations", force: :cascade do |t|
t.string "name"
t.string "description"
t.string "url"
t.integer "category_id"
end
add_index "configurations", ["category_id"], name: "index_configurations_on_category_id", using: :btree
create_table "parameters", force: :cascade do |t|
t.string "name"
t.string "kind"
t.string "value"
t.string "description"
t.integer "configuration_id"
end
add_index "parameters", ["configuration_id"], name: "index_parameters_on_configuration_id", using: :btree
create_table "rails_admin_histories", force: :cascade do |t|
t.text "message"
t.string "username"
t.integer "item"
t.string "table"
t.integer "month", limit: 2
t.integer "year", limit: 8
t.datetime "created_at"
t.datetime "updated_at"
end
add_index "rails_admin_histories", ["item", "table", "month", "year"], name: "index_rails_admin_histories", using: :btree
create_table "repositories", force: :cascade do |t|
t.string "git_url"
t.string "name"
t.string "description"
t.boolean "private"
t.boolean "fork"
t.datetime "pushed_at"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "github_id"
t.string "html_url"
t.string "ssh_url"
t.string "github_name"
t.integer "builds_count", default: 0
t.string "authentication_token"
t.boolean "visible", default: false, null: false
t.integer "collaborators_count", default: 0, null: false
t.datetime "last_build_at"
t.boolean "rails", default: true
end
create_table "user_repositories", force: :cascade do |t|
t.integer "user_id"
t.integer "repository_id"
t.boolean "own", default: true, null: false
end
add_index "user_repositories", ["repository_id"], name: "index_user_repositories_on_repository_id", using: :btree
add_index "user_repositories", ["user_id"], name: "index_user_repositories_on_user_id", using: :btree
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
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"
t.datetime "updated_at"
t.integer "github_uid"
t.string "nickname"
t.string "name"
t.string "github_token"
t.integer "own_repositories_count", default: 0, null: false
t.boolean "admin", default: false, null: false
end
add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
end