summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-10-05 14:37:42 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-10-05 14:37:42 +0200
commit198f4b703d98892e062525a37e2420429d83369d (patch)
tree45b854e6a4ff0aa9544c29f421619cecf4c264d2 /db
parentf42078f7c14b3a8a32f486ab0e3ec7ef791fc097 (diff)
downloadgitlab-ce-198f4b703d98892e062525a37e2420429d83369d.tar.gz
Fix db/schema.rb
Diffstat (limited to 'db')
-rw-r--r--db/schema.rb94
1 files changed, 36 insertions, 58 deletions
diff --git a/db/schema.rb b/db/schema.rb
index f2bda91f799..0e8d54fb267 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -13,6 +13,9 @@
ActiveRecord::Schema.define(version: 20151005075649) do
+ # These are extensions that must be enabled in order to support this database
+ enable_extension "plpgsql"
+
create_table "abuse_reports", force: true do |t|
t.integer "reporter_id"
t.integer "user_id"
@@ -42,8 +45,8 @@ ActiveRecord::Schema.define(version: 20151005075649) do
t.string "after_sign_out_path"
t.integer "session_expire_delay", default: 10080, null: false
t.text "import_sources"
- t.boolean "ci_enabled", default: true, null: false
t.text "help_page_text"
+ t.boolean "ci_enabled", default: true, null: false
end
create_table "audit_events", force: true do |t|
@@ -82,60 +85,42 @@ ActiveRecord::Schema.define(version: 20151005075649) do
t.integer "project_id"
t.string "status"
t.datetime "finished_at"
- t.text "trace", limit: 2147483647
+ t.text "trace"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "started_at"
t.integer "runner_id"
- t.float "coverage", limit: 24
+ t.float "coverage"
t.integer "commit_id"
t.text "commands"
t.integer "job_id"
t.string "name"
- t.boolean "deploy", default: false
+ t.boolean "deploy", default: false
t.text "options"
- t.boolean "allow_failure", default: false, null: false
+ t.boolean "allow_failure", default: false, null: false
t.string "stage"
t.integer "trigger_request_id"
- t.integer "gl_project_id"
t.integer "stage_idx"
t.boolean "tag"
t.string "ref"
- t.text "push_data"
t.integer "user_id"
end
- add_index "ci_builds", ["commit_id", "name"], name: "index_ci_builds_on_commit_id_and_name", using: :btree
add_index "ci_builds", ["commit_id", "stage_idx", "created_at"], name: "index_ci_builds_on_commit_id_and_stage_idx_and_created_at", using: :btree
add_index "ci_builds", ["commit_id"], name: "index_ci_builds_on_commit_id", using: :btree
add_index "ci_builds", ["project_id", "commit_id"], name: "index_ci_builds_on_project_id_and_commit_id", using: :btree
add_index "ci_builds", ["project_id"], name: "index_ci_builds_on_project_id", using: :btree
add_index "ci_builds", ["runner_id"], name: "index_ci_builds_on_runner_id", using: :btree
- create_table "ci_commit_statuses", force: true do |t|
- t.integer "commit_id"
- t.string "sha"
- t.string "ref"
- t.string "state"
- t.string "target_url"
- t.string "description"
- t.string "context", default: "default"
- t.datetime "created_at"
- t.datetime "updated_at"
- end
-
- add_index "ci_commit_statuses", ["commit_id", "context", "ref"], name: "index_ci_commit_statuses_on_commit_id_and_context_and_ref", using: :btree
- add_index "ci_commit_statuses", ["commit_id", "ref"], name: "index_ci_commit_statuses_on_commit_id_and_ref", using: :btree
-
create_table "ci_commits", force: true do |t|
t.integer "project_id"
t.string "ref"
t.string "sha"
t.string "before_sha"
- t.text "push_data", limit: 16777215
+ t.text "push_data"
t.datetime "created_at"
t.datetime "updated_at"
- t.boolean "tag", default: false
+ t.boolean "tag", default: false
t.text "yaml_errors"
t.datetime "committed_at"
t.integer "gl_project_id"
@@ -154,7 +139,6 @@ ActiveRecord::Schema.define(version: 20151005075649) do
t.text "description"
t.datetime "created_at"
t.datetime "updated_at"
- t.integer "gl_project_id"
end
add_index "ci_events", ["created_at"], name: "index_ci_events_on_created_at", using: :btree
@@ -202,11 +186,10 @@ ActiveRecord::Schema.define(version: 20151005075649) do
end
create_table "ci_runner_projects", force: true do |t|
- t.integer "runner_id", null: false
- t.integer "project_id", null: false
+ t.integer "runner_id", null: false
+ t.integer "project_id", null: false
t.datetime "created_at"
t.datetime "updated_at"
- t.integer "gl_project_id"
end
add_index "ci_runner_projects", ["project_id"], name: "index_ci_runner_projects_on_project_id", using: :btree
@@ -230,12 +213,11 @@ ActiveRecord::Schema.define(version: 20151005075649) do
create_table "ci_services", force: true do |t|
t.string "type"
t.string "title"
- t.integer "project_id", null: false
+ t.integer "project_id", null: false
t.datetime "created_at"
t.datetime "updated_at"
- t.boolean "active", default: false, null: false
+ t.boolean "active", default: false, null: false
t.text "properties"
- t.integer "gl_project_id"
end
add_index "ci_services", ["project_id"], name: "index_ci_services_on_project_id", using: :btree
@@ -280,11 +262,10 @@ ActiveRecord::Schema.define(version: 20151005075649) do
create_table "ci_triggers", force: true do |t|
t.string "token"
- t.integer "project_id", null: false
+ t.integer "project_id", null: false
t.datetime "deleted_at"
t.datetime "created_at"
t.datetime "updated_at"
- t.integer "gl_project_id"
end
add_index "ci_triggers", ["deleted_at"], name: "index_ci_triggers_on_deleted_at", using: :btree
@@ -296,17 +277,15 @@ ActiveRecord::Schema.define(version: 20151005075649) do
t.text "encrypted_value"
t.string "encrypted_value_salt"
t.string "encrypted_value_iv"
- t.integer "gl_project_id"
end
add_index "ci_variables", ["project_id"], name: "index_ci_variables_on_project_id", using: :btree
create_table "ci_web_hooks", force: true do |t|
- t.string "url", null: false
- t.integer "project_id", null: false
+ t.string "url", null: false
+ t.integer "project_id", null: false
t.datetime "created_at"
t.datetime "updated_at"
- t.integer "gl_project_id"
end
create_table "deploy_keys_projects", force: true do |t|
@@ -452,9 +431,9 @@ ActiveRecord::Schema.define(version: 20151005075649) do
create_table "merge_request_diffs", force: true do |t|
t.string "state"
- t.text "st_commits", limit: 2147483647
- t.text "st_diffs", limit: 2147483647
- t.integer "merge_request_id", null: false
+ t.text "st_commits"
+ t.text "st_diffs"
+ t.integer "merge_request_id", null: false
t.datetime "created_at"
t.datetime "updated_at"
end
@@ -537,8 +516,8 @@ ActiveRecord::Schema.define(version: 20151005075649) do
t.string "line_code"
t.string "commit_id"
t.integer "noteable_id"
- t.boolean "system", default: false, null: false
- t.text "st_diff", limit: 2147483647
+ t.boolean "system", default: false, null: false
+ t.text "st_diff"
t.integer "updated_by_id"
end
@@ -607,26 +586,25 @@ ActiveRecord::Schema.define(version: 20151005075649) do
t.datetime "created_at"
t.datetime "updated_at"
t.integer "creator_id"
- t.boolean "issues_enabled", default: true, null: false
- t.boolean "wall_enabled", default: true, null: false
- t.boolean "merge_requests_enabled", default: true, null: false
- t.boolean "wiki_enabled", default: true, null: false
+ t.boolean "issues_enabled", default: true, null: false
+ t.boolean "wall_enabled", default: true, null: false
+ t.boolean "merge_requests_enabled", default: true, null: false
+ t.boolean "wiki_enabled", default: true, null: false
t.integer "namespace_id"
- t.string "issues_tracker", default: "gitlab", null: false
+ t.string "issues_tracker", default: "gitlab", null: false
t.string "issues_tracker_id"
- t.boolean "snippets_enabled", default: true, null: false
+ t.boolean "snippets_enabled", default: true, null: false
t.datetime "last_activity_at"
t.string "import_url"
- t.integer "visibility_level", default: 0, null: false
- t.boolean "archived", default: false, null: false
+ t.integer "visibility_level", default: 0, null: false
+ t.boolean "archived", default: false, null: false
t.string "avatar"
t.string "import_status"
- t.float "repository_size", limit: 24, default: 0.0
- t.integer "star_count", default: 0, null: false
+ t.float "repository_size", default: 0.0
+ t.integer "star_count", default: 0, null: false
t.string "import_type"
t.string "import_source"
- t.integer "commit_count", default: 0
- t.boolean "shared_runners_enabled", default: false
+ t.integer "commit_count", default: 0
end
add_index "projects", ["created_at", "id"], name: "index_projects_on_created_at_and_id", using: :btree
@@ -678,15 +656,15 @@ ActiveRecord::Schema.define(version: 20151005075649) do
create_table "snippets", force: true do |t|
t.string "title"
- t.text "content", limit: 2147483647
- t.integer "author_id", null: false
+ t.text "content"
+ t.integer "author_id", null: false
t.integer "project_id"
t.datetime "created_at"
t.datetime "updated_at"
t.string "file_name"
t.datetime "expires_at"
t.string "type"
- t.integer "visibility_level", default: 0, null: false
+ t.integer "visibility_level", default: 0, null: false
end
add_index "snippets", ["author_id"], name: "index_snippets_on_author_id", using: :btree