2012-04-05 18:11:02 +01:00
|
|
|
# encoding: UTF-8
|
2011-03-09 13:13:36 +00:00
|
|
|
# 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 to check this file into your version control system.
|
|
|
|
|
2014-02-11 20:23:34 +00:00
|
|
|
ActiveRecord::Schema.define(:version => 20140211175858) do
|
2012-03-02 10:39:48 +00:00
|
|
|
|
2012-02-29 17:12:06 +00:00
|
|
|
create_table "activity_feeds", :force => true do |t|
|
|
|
|
t.integer "user_id", :null => false
|
|
|
|
t.string "kind"
|
|
|
|
t.text "data"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
2012-01-25 08:31:49 +00:00
|
|
|
end
|
2011-03-12 14:15:30 +00:00
|
|
|
|
2013-11-26 17:21:50 +00:00
|
|
|
add_index "activity_feeds", ["user_id", "kind"], :name => "index_activity_feeds_on_user_id_and_kind"
|
|
|
|
|
2012-05-04 18:12:51 +01:00
|
|
|
create_table "advisories", :force => true do |t|
|
|
|
|
t.string "advisory_id"
|
|
|
|
t.text "description", :default => ""
|
|
|
|
t.text "references", :default => ""
|
|
|
|
t.text "update_type", :default => ""
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
end
|
|
|
|
|
|
|
|
add_index "advisories", ["advisory_id"], :name => "index_advisories_on_advisory_id", :unique => true
|
|
|
|
add_index "advisories", ["update_type"], :name => "index_advisories_on_update_type"
|
|
|
|
|
|
|
|
create_table "advisories_platforms", :id => false, :force => true do |t|
|
|
|
|
t.integer "advisory_id"
|
|
|
|
t.integer "platform_id"
|
|
|
|
end
|
|
|
|
|
|
|
|
add_index "advisories_platforms", ["advisory_id"], :name => "index_advisories_platforms_on_advisory_id"
|
|
|
|
add_index "advisories_platforms", ["advisory_id", "platform_id"], :name => "advisory_platform_index", :unique => true
|
|
|
|
add_index "advisories_platforms", ["platform_id"], :name => "index_advisories_platforms_on_platform_id"
|
|
|
|
|
2012-06-18 23:49:17 +01:00
|
|
|
create_table "advisories_projects", :id => false, :force => true do |t|
|
|
|
|
t.integer "advisory_id"
|
|
|
|
t.integer "project_id"
|
|
|
|
end
|
|
|
|
|
|
|
|
add_index "advisories_projects", ["advisory_id"], :name => "index_advisories_projects_on_advisory_id"
|
|
|
|
add_index "advisories_projects", ["advisory_id", "project_id"], :name => "advisory_project_index", :unique => true
|
|
|
|
add_index "advisories_projects", ["project_id"], :name => "index_advisories_projects_on_project_id"
|
|
|
|
|
2011-03-12 14:15:30 +00:00
|
|
|
create_table "arches", :force => true do |t|
|
|
|
|
t.string "name", :null => false
|
2013-03-22 14:06:13 +00:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
2011-03-12 14:15:30 +00:00
|
|
|
end
|
|
|
|
|
2012-01-31 18:48:37 +00:00
|
|
|
add_index "arches", ["name"], :name => "index_arches_on_name", :unique => true
|
|
|
|
|
2011-10-11 21:56:51 +01:00
|
|
|
create_table "authentications", :force => true do |t|
|
|
|
|
t.integer "user_id"
|
|
|
|
t.string "provider"
|
|
|
|
t.string "uid"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
2011-10-11 21:56:51 +01:00
|
|
|
end
|
|
|
|
|
2012-01-31 18:48:37 +00:00
|
|
|
add_index "authentications", ["provider", "uid"], :name => "index_authentications_on_provider_and_uid", :unique => true
|
|
|
|
add_index "authentications", ["user_id"], :name => "index_authentications_on_user_id"
|
|
|
|
|
2011-04-11 11:47:57 +01:00
|
|
|
create_table "build_list_items", :force => true do |t|
|
|
|
|
t.string "name"
|
|
|
|
t.integer "level"
|
|
|
|
t.integer "status"
|
|
|
|
t.integer "build_list_id"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
2011-10-29 20:09:14 +01:00
|
|
|
t.string "version"
|
2011-04-11 11:47:57 +01:00
|
|
|
end
|
|
|
|
|
2012-01-31 18:48:37 +00:00
|
|
|
add_index "build_list_items", ["build_list_id"], :name => "index_build_list_items_on_build_list_id"
|
|
|
|
|
2012-05-14 20:08:31 +01:00
|
|
|
create_table "build_list_packages", :force => true do |t|
|
|
|
|
t.integer "build_list_id"
|
|
|
|
t.integer "project_id"
|
|
|
|
t.integer "platform_id"
|
|
|
|
t.string "fullname"
|
|
|
|
t.string "name"
|
|
|
|
t.string "version"
|
|
|
|
t.string "release"
|
|
|
|
t.string "package_type"
|
2012-08-24 16:19:26 +01:00
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
t.boolean "actual", :default => false
|
2013-01-10 11:21:12 +00:00
|
|
|
t.string "sha1"
|
2013-09-12 15:00:41 +01:00
|
|
|
t.integer "epoch"
|
2012-05-14 20:08:31 +01:00
|
|
|
end
|
|
|
|
|
2012-08-30 17:19:12 +01:00
|
|
|
add_index "build_list_packages", ["actual", "platform_id"], :name => "index_build_list_packages_on_actual_and_platform_id"
|
2012-05-14 20:08:31 +01:00
|
|
|
add_index "build_list_packages", ["build_list_id"], :name => "index_build_list_packages_on_build_list_id"
|
2012-06-01 15:39:59 +01:00
|
|
|
add_index "build_list_packages", ["name", "project_id"], :name => "index_build_list_packages_on_name_and_project_id"
|
2012-05-14 20:08:31 +01:00
|
|
|
add_index "build_list_packages", ["platform_id"], :name => "index_build_list_packages_on_platform_id"
|
|
|
|
add_index "build_list_packages", ["project_id"], :name => "index_build_list_packages_on_project_id"
|
|
|
|
|
2011-04-07 14:20:21 +01:00
|
|
|
create_table "build_lists", :force => true do |t|
|
|
|
|
t.integer "status"
|
2011-10-22 16:28:41 +01:00
|
|
|
t.string "project_version"
|
2011-04-07 14:20:21 +01:00
|
|
|
t.integer "project_id"
|
|
|
|
t.integer "arch_id"
|
|
|
|
t.datetime "notified_at"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
2013-11-07 15:49:43 +00:00
|
|
|
t.boolean "is_circle", :default => false
|
2011-04-11 11:47:57 +01:00
|
|
|
t.text "additional_repos"
|
|
|
|
t.string "name"
|
2011-10-22 16:28:41 +01:00
|
|
|
t.string "update_type"
|
2012-05-04 18:12:51 +01:00
|
|
|
t.integer "build_for_platform_id"
|
|
|
|
t.integer "save_to_platform_id"
|
2011-12-21 14:01:50 +00:00
|
|
|
t.text "include_repos"
|
2011-12-21 21:42:06 +00:00
|
|
|
t.integer "user_id"
|
2013-11-07 15:49:43 +00:00
|
|
|
t.boolean "auto_publish", :default => true
|
2012-01-13 16:45:13 +00:00
|
|
|
t.string "package_version"
|
2012-01-16 21:51:20 +00:00
|
|
|
t.string "commit_hash"
|
2013-11-07 15:49:43 +00:00
|
|
|
t.integer "priority", :default => 0, :null => false
|
2012-04-12 11:29:04 +01:00
|
|
|
t.datetime "started_at"
|
|
|
|
t.integer "duration"
|
2012-05-04 18:12:51 +01:00
|
|
|
t.integer "advisory_id"
|
2012-05-18 16:12:51 +01:00
|
|
|
t.integer "mass_build_id"
|
2012-07-27 17:01:26 +01:00
|
|
|
t.integer "save_to_repository_id"
|
2012-11-27 14:22:17 +00:00
|
|
|
t.text "results"
|
2013-11-07 15:49:43 +00:00
|
|
|
t.boolean "new_core", :default => true
|
2012-12-03 17:43:24 +00:00
|
|
|
t.string "last_published_commit_hash"
|
2013-01-28 14:44:06 +00:00
|
|
|
t.integer "container_status"
|
2013-11-07 15:49:43 +00:00
|
|
|
t.boolean "auto_create_container", :default => false
|
2013-02-18 15:43:30 +00:00
|
|
|
t.text "extra_repositories"
|
2013-02-22 11:04:14 +00:00
|
|
|
t.text "extra_build_lists"
|
2013-03-28 11:58:26 +00:00
|
|
|
t.integer "publisher_id"
|
2013-08-29 18:46:11 +01:00
|
|
|
t.integer "group_id"
|
2013-09-20 19:21:23 +01:00
|
|
|
t.text "extra_params"
|
2013-10-17 19:00:15 +01:00
|
|
|
t.string "external_nodes"
|
|
|
|
t.integer "builder_id"
|
2013-11-07 15:49:43 +00:00
|
|
|
t.boolean "include_testing_subrepository"
|
2011-04-07 14:20:21 +01:00
|
|
|
end
|
|
|
|
|
2012-05-04 18:12:51 +01:00
|
|
|
add_index "build_lists", ["advisory_id"], :name => "index_build_lists_on_advisory_id"
|
2012-01-31 18:48:37 +00:00
|
|
|
add_index "build_lists", ["arch_id"], :name => "index_build_lists_on_arch_id"
|
2012-08-27 22:12:53 +01:00
|
|
|
add_index "build_lists", ["project_id", "save_to_repository_id", "build_for_platform_id", "arch_id"], :name => "maintainer_search_index"
|
2012-01-31 18:48:37 +00:00
|
|
|
add_index "build_lists", ["project_id"], :name => "index_build_lists_on_project_id"
|
|
|
|
|
2011-12-19 15:30:14 +00:00
|
|
|
create_table "comments", :force => true do |t|
|
|
|
|
t.string "commentable_type"
|
|
|
|
t.integer "user_id"
|
|
|
|
t.text "body"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
2013-04-08 19:53:15 +01:00
|
|
|
t.decimal "commentable_id", :precision => 50, :scale => 0
|
2012-03-14 17:22:47 +00:00
|
|
|
t.integer "project_id"
|
2012-10-05 12:02:25 +01:00
|
|
|
t.text "data"
|
2013-04-08 19:53:15 +01:00
|
|
|
t.boolean "automatic", :default => false
|
|
|
|
t.decimal "created_from_commit_hash", :precision => 50, :scale => 0
|
|
|
|
t.integer "created_from_issue_id"
|
2011-12-19 15:30:14 +00:00
|
|
|
end
|
|
|
|
|
2013-04-08 19:53:15 +01:00
|
|
|
add_index "comments", ["automatic"], :name => "index_comments_on_automatic"
|
|
|
|
add_index "comments", ["commentable_id"], :name => "index_comments_on_commentable_id"
|
|
|
|
add_index "comments", ["commentable_type"], :name => "index_comments_on_commentable_type"
|
|
|
|
add_index "comments", ["created_from_commit_hash"], :name => "index_comments_on_created_from_commit_hash"
|
|
|
|
add_index "comments", ["created_from_issue_id"], :name => "index_comments_on_created_from_issue_id"
|
|
|
|
|
2011-10-14 21:45:58 +01:00
|
|
|
create_table "event_logs", :force => true do |t|
|
|
|
|
t.integer "user_id"
|
|
|
|
t.string "user_name"
|
2012-04-26 02:38:33 +01:00
|
|
|
t.integer "eventable_id"
|
|
|
|
t.string "eventable_type"
|
|
|
|
t.string "eventable_name"
|
2011-10-14 21:45:58 +01:00
|
|
|
t.string "ip"
|
|
|
|
t.string "kind"
|
|
|
|
t.string "protocol"
|
|
|
|
t.string "controller"
|
|
|
|
t.string "action"
|
|
|
|
t.text "message"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
2011-10-14 21:45:58 +01:00
|
|
|
end
|
|
|
|
|
2012-07-23 15:25:37 +01:00
|
|
|
create_table "flash_notifies", :force => true do |t|
|
|
|
|
t.text "body_ru", :null => false
|
|
|
|
t.text "body_en", :null => false
|
|
|
|
t.string "status", :null => false
|
|
|
|
t.boolean "published", :default => true, :null => false
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
end
|
|
|
|
|
2011-10-13 16:55:03 +01:00
|
|
|
create_table "groups", :force => true do |t|
|
|
|
|
t.integer "owner_id"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
2011-10-17 15:18:37 +01:00
|
|
|
t.string "uname"
|
2012-10-03 17:38:42 +01:00
|
|
|
t.integer "own_projects_count", :default => 0, :null => false
|
2012-02-29 17:12:06 +00:00
|
|
|
t.text "description"
|
2012-10-03 17:38:42 +01:00
|
|
|
t.string "avatar_file_name"
|
|
|
|
t.string "avatar_content_type"
|
|
|
|
t.integer "avatar_file_size"
|
|
|
|
t.datetime "avatar_updated_at"
|
2011-10-13 16:55:03 +01:00
|
|
|
end
|
|
|
|
|
2013-04-23 14:21:10 +01:00
|
|
|
create_table "hooks", :force => true do |t|
|
|
|
|
t.text "data"
|
|
|
|
t.integer "project_id"
|
|
|
|
t.string "name"
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
end
|
|
|
|
|
2011-12-19 15:30:14 +00:00
|
|
|
create_table "issues", :force => true do |t|
|
|
|
|
t.integer "serial_id"
|
|
|
|
t.integer "project_id"
|
2012-04-16 18:51:51 +01:00
|
|
|
t.integer "assignee_id"
|
2011-12-19 15:30:14 +00:00
|
|
|
t.string "title"
|
|
|
|
t.text "body"
|
2012-05-29 11:09:37 +01:00
|
|
|
t.string "status", :default => "open"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
2012-04-16 18:51:51 +01:00
|
|
|
t.integer "user_id"
|
2012-02-29 14:04:04 +00:00
|
|
|
t.datetime "closed_at"
|
|
|
|
t.integer "closed_by"
|
2011-12-19 15:30:14 +00:00
|
|
|
end
|
|
|
|
|
2012-01-31 18:48:37 +00:00
|
|
|
add_index "issues", ["project_id", "serial_id"], :name => "index_issues_on_project_id_and_serial_id", :unique => true
|
2013-04-17 18:32:04 +01:00
|
|
|
add_index "issues", ["user_id"], :name => "index_issues_on_user_id"
|
2012-01-31 18:48:37 +00:00
|
|
|
|
2012-07-13 12:18:12 +01:00
|
|
|
create_table "key_pairs", :force => true do |t|
|
2012-12-19 18:18:00 +00:00
|
|
|
t.text "public", :null => false
|
|
|
|
t.text "encrypted_secret", :null => false
|
|
|
|
t.string "key_id", :null => false
|
|
|
|
t.integer "user_id", :null => false
|
|
|
|
t.integer "repository_id", :null => false
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
end
|
|
|
|
|
|
|
|
add_index "key_pairs", ["repository_id"], :name => "index_key_pairs_on_repository_id", :unique => true
|
|
|
|
|
|
|
|
create_table "key_pairs_backup", :force => true do |t|
|
2012-07-30 23:01:16 +01:00
|
|
|
t.integer "repository_id", :null => false
|
|
|
|
t.integer "user_id", :null => false
|
|
|
|
t.string "key_id", :null => false
|
|
|
|
t.text "public", :null => false
|
2012-07-13 12:18:12 +01:00
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
end
|
|
|
|
|
2012-12-19 18:18:00 +00:00
|
|
|
add_index "key_pairs_backup", ["repository_id"], :name => "index_key_pairs_backup_on_repository_id", :unique => true
|
2012-07-30 23:01:16 +01:00
|
|
|
|
2012-02-29 14:04:04 +00:00
|
|
|
create_table "labelings", :force => true do |t|
|
|
|
|
t.integer "label_id", :null => false
|
|
|
|
t.integer "issue_id"
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
end
|
|
|
|
|
|
|
|
add_index "labelings", ["issue_id"], :name => "index_labelings_on_issue_id"
|
|
|
|
|
|
|
|
create_table "labels", :force => true do |t|
|
|
|
|
t.string "name", :null => false
|
|
|
|
t.string "color", :null => false
|
|
|
|
t.integer "project_id"
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
end
|
|
|
|
|
|
|
|
add_index "labels", ["project_id"], :name => "index_labels_on_project_id"
|
|
|
|
|
2012-05-18 16:12:51 +01:00
|
|
|
create_table "mass_builds", :force => true do |t|
|
2013-06-04 20:59:08 +01:00
|
|
|
t.integer "build_for_platform_id", :null => false
|
2012-05-18 16:12:51 +01:00
|
|
|
t.string "name"
|
2013-06-04 20:59:08 +01:00
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
2012-05-23 15:08:11 +01:00
|
|
|
t.string "arch_names"
|
|
|
|
t.integer "user_id"
|
2013-06-04 20:59:08 +01:00
|
|
|
t.boolean "auto_publish", :default => false, :null => false
|
|
|
|
t.integer "build_lists_count", :default => 0, :null => false
|
|
|
|
t.integer "build_published_count", :default => 0, :null => false
|
|
|
|
t.integer "build_pending_count", :default => 0, :null => false
|
|
|
|
t.integer "build_started_count", :default => 0, :null => false
|
|
|
|
t.integer "build_publish_count", :default => 0, :null => false
|
|
|
|
t.integer "build_error_count", :default => 0, :null => false
|
|
|
|
t.boolean "stop_build", :default => false, :null => false
|
2012-12-06 17:59:17 +00:00
|
|
|
t.text "projects_list"
|
2013-06-04 20:59:08 +01:00
|
|
|
t.integer "missed_projects_count", :default => 0, :null => false
|
2012-12-06 17:59:17 +00:00
|
|
|
t.text "missed_projects_list"
|
2013-06-04 20:59:08 +01:00
|
|
|
t.boolean "new_core", :default => true
|
|
|
|
t.integer "success_count", :default => 0, :null => false
|
|
|
|
t.integer "build_canceled_count", :default => 0, :null => false
|
|
|
|
t.integer "save_to_platform_id", :null => false
|
|
|
|
t.text "extra_repositories"
|
|
|
|
t.text "extra_build_lists"
|
2013-09-18 20:01:02 +01:00
|
|
|
t.boolean "increase_release_tag", :default => false, :null => false
|
2012-05-18 16:12:51 +01:00
|
|
|
end
|
|
|
|
|
2013-07-24 15:43:41 +01:00
|
|
|
create_table "platform_arch_settings", :force => true do |t|
|
|
|
|
t.integer "platform_id", :null => false
|
|
|
|
t.integer "arch_id", :null => false
|
|
|
|
t.integer "time_living", :null => false
|
|
|
|
t.boolean "default"
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
end
|
|
|
|
|
|
|
|
add_index "platform_arch_settings", ["platform_id", "arch_id"], :name => "index_platform_arch_settings_on_platform_id_and_arch_id", :unique => true
|
|
|
|
|
2011-03-09 19:27:51 +00:00
|
|
|
create_table "platforms", :force => true do |t|
|
2011-11-29 10:17:05 +00:00
|
|
|
t.string "description"
|
2014-02-11 20:23:34 +00:00
|
|
|
t.string "name", :null => false
|
2011-03-09 19:27:51 +00:00
|
|
|
t.integer "parent_platform_id"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
2014-02-11 20:23:34 +00:00
|
|
|
t.boolean "released", :default => false, :null => false
|
2011-10-17 15:18:37 +01:00
|
|
|
t.integer "owner_id"
|
|
|
|
t.string "owner_type"
|
2014-02-11 20:23:34 +00:00
|
|
|
t.string "visibility", :default => "open", :null => false
|
|
|
|
t.string "platform_type", :default => "main", :null => false
|
|
|
|
t.string "distrib_type", :null => false
|
2013-10-22 09:32:06 +01:00
|
|
|
t.integer "status"
|
2013-08-22 22:02:24 +01:00
|
|
|
t.datetime "last_regenerated_at"
|
|
|
|
t.integer "last_regenerated_status"
|
2013-08-27 16:43:30 +01:00
|
|
|
t.string "last_regenerated_log_sha1"
|
2014-02-11 20:23:34 +00:00
|
|
|
t.string "automatic_metadata_regeneration"
|
2011-03-09 19:27:51 +00:00
|
|
|
end
|
|
|
|
|
2012-04-01 16:19:54 +01:00
|
|
|
add_index "platforms", ["name"], :name => "index_platforms_on_name", :unique => true, :case_sensitive => false
|
|
|
|
|
2011-10-18 14:47:17 +01:00
|
|
|
create_table "private_users", :force => true do |t|
|
|
|
|
t.integer "platform_id"
|
|
|
|
t.string "login"
|
|
|
|
t.string "password"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
2011-10-27 14:04:03 +01:00
|
|
|
t.integer "user_id"
|
2011-10-18 14:47:17 +01:00
|
|
|
end
|
|
|
|
|
2011-11-11 17:13:09 +00:00
|
|
|
create_table "product_build_lists", :force => true do |t|
|
|
|
|
t.integer "product_id"
|
2013-10-22 09:32:06 +01:00
|
|
|
t.integer "status", :null => false
|
2013-03-22 14:06:13 +00:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
2012-11-06 14:13:16 +00:00
|
|
|
t.integer "project_id"
|
|
|
|
t.string "project_version"
|
|
|
|
t.string "commit_hash"
|
2012-11-06 16:19:52 +00:00
|
|
|
t.string "params"
|
|
|
|
t.string "main_script"
|
2012-11-08 21:39:42 +00:00
|
|
|
t.text "results"
|
2012-11-13 14:01:06 +00:00
|
|
|
t.integer "arch_id"
|
2012-11-12 13:22:19 +00:00
|
|
|
t.integer "time_living"
|
2012-12-14 15:14:33 +00:00
|
|
|
t.integer "user_id"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.boolean "not_delete", :default => false
|
2013-03-22 16:04:29 +00:00
|
|
|
t.boolean "autostarted", :default => false
|
2011-11-11 17:13:09 +00:00
|
|
|
end
|
|
|
|
|
2012-01-31 18:48:37 +00:00
|
|
|
add_index "product_build_lists", ["product_id"], :name => "index_product_build_lists_on_product_id"
|
|
|
|
|
2011-04-11 09:35:08 +01:00
|
|
|
create_table "products", :force => true do |t|
|
2013-03-22 16:15:37 +00:00
|
|
|
t.string "name", :null => false
|
|
|
|
t.integer "platform_id", :null => false
|
2013-03-22 14:06:13 +00:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
2012-03-14 17:22:47 +00:00
|
|
|
t.text "description"
|
2012-11-06 14:13:16 +00:00
|
|
|
t.integer "project_id"
|
2012-11-09 13:08:56 +00:00
|
|
|
t.string "params"
|
|
|
|
t.string "main_script"
|
2012-11-12 13:22:19 +00:00
|
|
|
t.integer "time_living"
|
2013-03-22 16:15:37 +00:00
|
|
|
t.integer "autostart_status"
|
2013-03-27 12:18:24 +00:00
|
|
|
t.string "project_version"
|
2011-04-11 09:35:08 +01:00
|
|
|
end
|
|
|
|
|
2012-01-27 15:35:18 +00:00
|
|
|
create_table "project_imports", :force => true do |t|
|
|
|
|
t.integer "project_id"
|
|
|
|
t.string "name"
|
|
|
|
t.string "version"
|
|
|
|
t.datetime "file_mtime"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
2012-01-31 18:48:37 +00:00
|
|
|
t.integer "platform_id"
|
2012-01-27 15:35:18 +00:00
|
|
|
end
|
|
|
|
|
2012-01-31 18:48:37 +00:00
|
|
|
add_index "project_imports", ["platform_id", "name"], :name => "index_project_imports_on_name_and_platform_id", :unique => true, :case_sensitive => false
|
|
|
|
|
2013-07-31 13:20:30 +01:00
|
|
|
create_table "project_statistics", :force => true do |t|
|
|
|
|
t.integer "average_build_time", :default => 0, :null => false
|
|
|
|
t.integer "build_count", :default => 0, :null => false
|
|
|
|
t.integer "arch_id", :null => false
|
|
|
|
t.integer "project_id", :null => false
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
end
|
|
|
|
|
|
|
|
add_index "project_statistics", ["project_id", "arch_id"], :name => "index_project_statistics_on_project_id_and_arch_id", :unique => true
|
|
|
|
|
2013-02-14 13:20:08 +00:00
|
|
|
create_table "project_tags", :force => true do |t|
|
|
|
|
t.integer "project_id"
|
|
|
|
t.string "commit_id"
|
|
|
|
t.string "sha1"
|
|
|
|
t.string "tag_name"
|
|
|
|
t.integer "format_id"
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
end
|
|
|
|
|
2011-10-13 16:55:03 +01:00
|
|
|
create_table "project_to_repositories", :force => true do |t|
|
|
|
|
t.integer "project_id"
|
|
|
|
t.integer "repository_id"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
2011-10-13 16:55:03 +01:00
|
|
|
end
|
|
|
|
|
2012-12-11 13:48:16 +00:00
|
|
|
add_index "project_to_repositories", ["repository_id", "project_id"], :name => "index_project_to_repositories_on_repository_id_and_project_id", :unique => true
|
|
|
|
|
2011-03-09 19:27:51 +00:00
|
|
|
create_table "projects", :force => true do |t|
|
|
|
|
t.string "name"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
2011-10-17 15:18:37 +01:00
|
|
|
t.integer "owner_id"
|
|
|
|
t.string "owner_type"
|
2013-02-07 11:11:57 +00:00
|
|
|
t.string "visibility", :default => "open"
|
2011-10-19 21:58:31 +01:00
|
|
|
t.text "description"
|
2011-11-23 15:52:33 +00:00
|
|
|
t.string "ancestry"
|
2013-02-07 11:11:57 +00:00
|
|
|
t.boolean "has_issues", :default => true
|
2012-01-30 20:36:58 +00:00
|
|
|
t.string "srpm_file_name"
|
2012-01-27 15:35:18 +00:00
|
|
|
t.integer "srpm_file_size"
|
2012-01-30 20:36:58 +00:00
|
|
|
t.datetime "srpm_updated_at"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.string "srpm_content_type"
|
|
|
|
t.boolean "has_wiki", :default => false
|
2013-02-07 11:11:57 +00:00
|
|
|
t.string "default_branch", :default => "master"
|
|
|
|
t.boolean "is_package", :default => true, :null => false
|
2012-08-24 16:19:26 +01:00
|
|
|
t.integer "maintainer_id"
|
2013-02-07 11:11:57 +00:00
|
|
|
t.boolean "publish_i686_into_x86_64", :default => false
|
2013-04-08 19:53:15 +01:00
|
|
|
t.string "owner_uname", :null => false
|
2014-01-13 21:54:09 +00:00
|
|
|
t.boolean "architecture_dependent", :default => false, :null => false
|
2011-03-11 16:08:41 +00:00
|
|
|
end
|
|
|
|
|
2012-10-01 19:09:59 +01:00
|
|
|
add_index "projects", ["owner_id", "name", "owner_type"], :name => "index_projects_on_name_and_owner_id_and_owner_type", :unique => true, :case_sensitive => false
|
2012-04-19 20:08:33 +01:00
|
|
|
|
2012-04-28 18:28:57 +01:00
|
|
|
create_table "pull_requests", :force => true do |t|
|
2012-10-27 19:04:28 +01:00
|
|
|
t.integer "issue_id", :null => false
|
|
|
|
t.integer "to_project_id", :null => false
|
|
|
|
t.integer "from_project_id", :null => false
|
|
|
|
t.string "to_ref", :null => false
|
|
|
|
t.string "from_ref", :null => false
|
|
|
|
t.string "from_project_owner_uname"
|
|
|
|
t.string "from_project_name"
|
2012-04-28 18:28:57 +01:00
|
|
|
end
|
|
|
|
|
2012-10-03 12:36:04 +01:00
|
|
|
add_index "pull_requests", ["from_project_id"], :name => "index_pull_requests_on_head_project_id"
|
2012-06-27 11:20:38 +01:00
|
|
|
add_index "pull_requests", ["issue_id"], :name => "index_pull_requests_on_issue_id"
|
2012-10-03 12:36:04 +01:00
|
|
|
add_index "pull_requests", ["to_project_id"], :name => "index_pull_requests_on_base_project_id"
|
2012-06-27 11:20:38 +01:00
|
|
|
|
2012-02-09 17:46:23 +00:00
|
|
|
create_table "register_requests", :force => true do |t|
|
|
|
|
t.string "name"
|
|
|
|
t.string "email"
|
|
|
|
t.string "token"
|
|
|
|
t.boolean "approved", :default => false
|
|
|
|
t.boolean "rejected", :default => false
|
2013-03-22 14:06:13 +00:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
2012-02-10 16:33:16 +00:00
|
|
|
t.string "interest"
|
|
|
|
t.text "more"
|
2012-09-10 12:08:53 +01:00
|
|
|
t.string "language"
|
2012-02-09 17:46:23 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
add_index "register_requests", ["email"], :name => "index_register_requests_on_email", :unique => true, :case_sensitive => false
|
2012-03-20 10:56:51 +00:00
|
|
|
add_index "register_requests", ["token"], :name => "index_register_requests_on_token", :unique => true, :case_sensitive => false
|
2012-01-31 18:48:37 +00:00
|
|
|
|
2011-10-13 16:55:03 +01:00
|
|
|
create_table "relations", :force => true do |t|
|
2012-04-26 02:38:33 +01:00
|
|
|
t.integer "actor_id"
|
|
|
|
t.string "actor_type"
|
2011-10-13 16:55:03 +01:00
|
|
|
t.integer "target_id"
|
|
|
|
t.string "target_type"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
2011-11-16 18:45:01 +00:00
|
|
|
t.string "role"
|
2011-03-11 16:08:41 +00:00
|
|
|
end
|
|
|
|
|
2013-07-17 12:33:34 +01:00
|
|
|
add_index "relations", ["actor_type", "actor_id"], :name => "index_relations_on_actor_type_and_actor_id"
|
|
|
|
add_index "relations", ["target_type", "target_id"], :name => "index_relations_on_target_type_and_target_id"
|
|
|
|
|
2011-03-11 16:08:41 +00:00
|
|
|
create_table "repositories", :force => true do |t|
|
2014-01-13 21:51:12 +00:00
|
|
|
t.string "description", :null => false
|
|
|
|
t.integer "platform_id", :null => false
|
2013-03-22 14:06:13 +00:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
2014-01-13 21:51:12 +00:00
|
|
|
t.string "name", :null => false
|
|
|
|
t.boolean "publish_without_qa", :default => true
|
|
|
|
t.boolean "synchronizing_publications", :default => false, :null => false
|
2011-03-09 19:27:51 +00:00
|
|
|
end
|
2011-03-09 16:16:48 +00:00
|
|
|
|
2012-12-11 13:48:16 +00:00
|
|
|
add_index "repositories", ["platform_id"], :name => "index_repositories_on_platform_id"
|
|
|
|
|
2013-08-22 22:02:24 +01:00
|
|
|
create_table "repository_statuses", :force => true do |t|
|
2013-08-27 16:43:30 +01:00
|
|
|
t.integer "repository_id", :null => false
|
|
|
|
t.integer "platform_id", :null => false
|
|
|
|
t.integer "status", :default => 0
|
2013-08-22 22:02:24 +01:00
|
|
|
t.datetime "last_regenerated_at"
|
|
|
|
t.integer "last_regenerated_status"
|
2013-08-27 16:43:30 +01:00
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
t.string "last_regenerated_log_sha1"
|
2013-08-22 22:02:24 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
add_index "repository_statuses", ["repository_id", "platform_id"], :name => "index_repository_statuses_on_repository_id_and_platform_id", :unique => true
|
|
|
|
|
2012-01-11 13:58:13 +00:00
|
|
|
create_table "settings_notifiers", :force => true do |t|
|
2013-11-26 17:21:50 +00:00
|
|
|
t.integer "user_id", :null => false
|
2012-01-18 17:48:31 +00:00
|
|
|
t.boolean "can_notify", :default => true
|
|
|
|
t.boolean "new_comment", :default => true
|
|
|
|
t.boolean "new_comment_reply", :default => true
|
|
|
|
t.boolean "new_issue", :default => true
|
|
|
|
t.boolean "issue_assign", :default => true
|
2013-03-22 14:06:13 +00:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
2012-01-18 17:48:31 +00:00
|
|
|
t.boolean "new_comment_commit_owner", :default => true
|
|
|
|
t.boolean "new_comment_commit_repo_owner", :default => true
|
|
|
|
t.boolean "new_comment_commit_commentor", :default => true
|
2012-09-14 17:12:48 +01:00
|
|
|
t.boolean "new_build", :default => true
|
|
|
|
t.boolean "new_associated_build", :default => true
|
2013-11-27 09:28:11 +00:00
|
|
|
t.boolean "update_code", :default => false
|
2012-01-11 13:58:13 +00:00
|
|
|
end
|
|
|
|
|
2013-02-28 17:02:14 +00:00
|
|
|
create_table "ssh_keys", :force => true do |t|
|
2013-03-01 17:35:33 +00:00
|
|
|
t.string "name"
|
2013-02-28 17:02:14 +00:00
|
|
|
t.text "key", :null => false
|
|
|
|
t.string "fingerprint", :null => false
|
|
|
|
t.integer "user_id", :null => false
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
end
|
|
|
|
|
2013-03-01 17:35:33 +00:00
|
|
|
add_index "ssh_keys", ["fingerprint"], :name => "index_ssh_keys_on_fingerprint", :unique => true
|
2013-02-28 17:02:14 +00:00
|
|
|
add_index "ssh_keys", ["user_id"], :name => "index_ssh_keys_on_user_id"
|
|
|
|
|
2011-12-26 15:48:57 +00:00
|
|
|
create_table "subscribes", :force => true do |t|
|
|
|
|
t.string "subscribeable_type"
|
|
|
|
t.integer "user_id"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
2012-02-14 16:05:41 +00:00
|
|
|
t.boolean "status", :default => true
|
2012-02-02 21:30:08 +00:00
|
|
|
t.integer "project_id"
|
2012-02-14 16:05:41 +00:00
|
|
|
t.decimal "subscribeable_id", :precision => 50, :scale => 0
|
2011-12-26 15:48:57 +00:00
|
|
|
end
|
|
|
|
|
2013-06-25 08:00:20 +01:00
|
|
|
create_table "tokens", :force => true do |t|
|
|
|
|
t.integer "subject_id", :null => false
|
|
|
|
t.string "subject_type", :null => false
|
|
|
|
t.integer "creator_id", :null => false
|
|
|
|
t.integer "updater_id"
|
|
|
|
t.string "status", :default => "active"
|
|
|
|
t.text "description"
|
|
|
|
t.string "authentication_token", :null => false
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
end
|
|
|
|
|
|
|
|
add_index "tokens", ["authentication_token"], :name => "index_tokens_on_authentication_token", :unique => true
|
|
|
|
add_index "tokens", ["subject_id", "subject_type"], :name => "index_tokens_on_subject_id_and_subject_type"
|
|
|
|
|
2011-03-09 16:16:48 +00:00
|
|
|
create_table "users", :force => true do |t|
|
|
|
|
t.string "name"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.string "email", :default => "", :null => false
|
|
|
|
t.string "encrypted_password", :limit => 128, :default => "", :null => false
|
2011-03-09 16:16:48 +00:00
|
|
|
t.string "reset_password_token"
|
2012-04-19 20:08:33 +01:00
|
|
|
t.datetime "reset_password_sent_at"
|
2011-03-09 16:16:48 +00:00
|
|
|
t.datetime "remember_created_at"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
2012-04-19 20:08:33 +01:00
|
|
|
t.text "ssh_key"
|
2012-01-11 13:58:13 +00:00
|
|
|
t.string "uname"
|
2011-11-16 18:45:01 +00:00
|
|
|
t.string "role"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.string "language", :default => "en"
|
|
|
|
t.integer "own_projects_count", :default => 0, :null => false
|
2012-03-02 12:14:59 +00:00
|
|
|
t.text "professional_experience"
|
2012-03-03 08:01:32 +00:00
|
|
|
t.string "site"
|
|
|
|
t.string "company"
|
|
|
|
t.string "location"
|
2012-03-03 18:05:02 +00:00
|
|
|
t.string "avatar_file_name"
|
|
|
|
t.string "avatar_content_type"
|
|
|
|
t.integer "avatar_file_size"
|
|
|
|
t.datetime "avatar_updated_at"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.integer "failed_attempts", :default => 0
|
2012-03-21 13:37:16 +00:00
|
|
|
t.string "unlock_token"
|
|
|
|
t.datetime "locked_at"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.string "confirmation_token"
|
|
|
|
t.datetime "confirmed_at"
|
|
|
|
t.datetime "confirmation_sent_at"
|
2012-04-18 13:46:09 +01:00
|
|
|
t.string "authentication_token"
|
2013-03-22 14:06:13 +00:00
|
|
|
t.integer "build_priority", :default => 50
|
2013-08-20 21:10:25 +01:00
|
|
|
t.boolean "sound_notifications", :default => true
|
2011-03-09 16:16:48 +00:00
|
|
|
end
|
|
|
|
|
2012-04-19 11:50:43 +01:00
|
|
|
add_index "users", ["authentication_token"], :name => "index_users_on_authentication_token"
|
2012-03-22 07:16:56 +00:00
|
|
|
add_index "users", ["confirmation_token"], :name => "index_users_on_confirmation_token", :unique => true
|
2012-01-31 18:48:37 +00:00
|
|
|
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
|
|
|
|
add_index "users", ["uname"], :name => "index_users_on_uname", :unique => true
|
2012-03-21 13:37:16 +00:00
|
|
|
add_index "users", ["unlock_token"], :name => "index_users_on_unlock_token", :unique => true
|
2012-01-31 18:48:37 +00:00
|
|
|
|
2011-03-09 13:13:36 +00:00
|
|
|
end
|