Skip to content
Newer
Older
100644 923 lines (820 sloc) 40.3 KB
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
1 # encoding: UTF-8
2 # This file is auto-generated from the current state of the database. Instead
3 # of editing this file, please use the migrations feature of Active Record to
4 # incrementally modify your database, and then regenerate this schema definition.
5 #
6 # Note that this schema.rb definition is the authoritative source for your
7 # database schema. If you need to create the application database on another
8 # system, you should be using db:schema:load, not running all the migrations
9 # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10 # you'll amass, the slower it'll run and the greater likelihood for issues).
11 #
7060668 @randx Fixed db schema
randx authored
12 # It's strongly recommended that you check this file into your version control system.
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
13
6c3cd24 @vsizov Add index for snippet's updated_at
vsizov authored
14 ActiveRecord::Schema.define(version: 20160209130428) do
86a8796 @randx Create EmailsOnPushService model
randx authored
15
3031209 @ayufan Fix db/schema.rb
ayufan authored
16 # These are extensions that must be enabled in order to support this database
17 enable_extension "plpgsql"
18
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
19 create_table "abuse_reports", force: :cascade do |t|
cba7f20 @randx Allow users to send abuse reports
randx authored
20 t.integer "reporter_id"
21 t.integer "user_id"
22 t.text "message"
23 t.datetime "created_at"
24 t.datetime "updated_at"
25 end
26
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
27 create_table "application_settings", force: :cascade do |t|
8589b4e @randx Init ApplicationSettings resource with defaults from config file
randx authored
28 t.integer "default_projects_limit"
29 t.boolean "signup_enabled"
30 t.boolean "signin_enabled"
31 t.boolean "gravatar_enabled"
32 t.text "sign_in_text"
33 t.datetime "created_at"
34 t.datetime "updated_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
35 t.string "home_page_url"
36 t.integer "default_branch_protection", default: 2
37 t.boolean "twitter_sharing_enabled", default: true
cacac14 @mr-vinn Move restricted visibility settings to the UI
mr-vinn authored
38 t.text "restricted_visibility_levels"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
39 t.boolean "version_check_enabled", default: true
40 t.integer "max_attachment_size", default: 10, null: false
bd557e4 @mr-vinn Add new admin settings
mr-vinn authored
41 t.integer "default_project_visibility"
42 t.integer "default_snippet_visibility"
eb4f1eb @stanhu Add application setting to restrict user signups to e-mail domains
stanhu authored
43 t.text "restricted_signup_domains"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
44 t.boolean "user_oauth_applications", default: true
45 t.string "after_sign_out_path"
46 t.integer "session_expire_delay", default: 10080, null: false
55dca86 @artem-sidorenko Import sources: settings in the admin interface
artem-sidorenko authored
47 t.text "import_sources"
30c78e7 @ayufan WIP
ayufan authored
48 t.text "help_page_text"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
49 t.string "admin_notification_email"
50 t.boolean "shared_runners_enabled", default: true, null: false
51 t.integer "max_artifacts_size", default: 100, null: false
4a32b07 @grzesiek Add `runners_registration_token` to ApplicationSettings
grzesiek authored
52 t.string "runners_registration_token"
8fdc00b @YorickPeterse Remove InfluxDB username/password
YorickPeterse authored
53 t.boolean "require_two_factor_authentication", default: false
54 t.integer "two_factor_grace_period", default: 48
55 t.boolean "metrics_enabled", default: false
56 t.string "metrics_host", default: "localhost"
57 t.integer "metrics_pool_size", default: 16
58 t.integer "metrics_timeout", default: 10
59 t.integer "metrics_method_call_threshold", default: 10
60 t.boolean "recaptcha_enabled", default: false
a3469d9 @brodock reCAPTCHA is configurable through Admin Settings, no reload needed.
brodock authored
61 t.string "recaptcha_site_key"
62 t.string "recaptcha_private_key"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
63 t.integer "metrics_port", default: 8089
64 t.integer "metrics_sample_interval", default: 15
85e0fce @jeroennijhof Add sentry integration
jeroennijhof authored
65 t.boolean "sentry_enabled", default: false
66 t.string "sentry_dsn"
d20e75a @stanhu Support Akismet spam checking for creation of issues via API
stanhu authored
67 t.boolean "akismet_enabled", default: false
68 t.string "akismet_api_key"
9474e36 @huacnlee Add option to include the sender name in body of Notify email. fix #7824
huacnlee authored
69 t.boolean "email_author_in_body", default: false
8589b4e @randx Init ApplicationSettings resource with defaults from config file
randx authored
70 end
71
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
72 create_table "audit_events", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
73 t.integer "author_id", null: false
74 t.string "type", null: false
75 t.integer "entity_id", null: false
76 t.string "entity_type", null: false
411829f @vsizov Audit log for user authentication
vsizov authored
77 t.text "details"
78 t.datetime "created_at"
79 t.datetime "updated_at"
80 end
81
82 add_index "audit_events", ["author_id"], name: "index_audit_events_on_author_id", using: :btree
83 add_index "audit_events", ["entity_id", "entity_type"], name: "index_audit_events_on_entity_id_and_entity_type", using: :btree
84 add_index "audit_events", ["type"], name: "index_audit_events_on_type", using: :btree
85
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
86 create_table "broadcast_messages", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
87 t.text "message", null: false
f1ecf53 @randx Broadcast message model + migrations
randx authored
88 t.datetime "starts_at"
89 t.datetime "ends_at"
9a676cc @jvanbaarsen Added tag_push_events to the web_hooks
jvanbaarsen authored
90 t.datetime "created_at"
91 t.datetime "updated_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
92 t.string "color"
93 t.string "font"
f1ecf53 @randx Broadcast message model + migrations
randx authored
94 end
a735ce2 @randx migrations for ssh key STI and deploy keys <-> projects relation
randx authored
95
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
96 create_table "ci_application_settings", force: :cascade do |t|
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
97 t.boolean "all_broken_builds"
98 t.boolean "add_pusher"
99 t.datetime "created_at"
100 t.datetime "updated_at"
101 end
102
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
103 create_table "ci_builds", force: :cascade do |t|
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
104 t.integer "project_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
105 t.string "status"
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
106 t.datetime "finished_at"
3031209 @ayufan Fix db/schema.rb
ayufan authored
107 t.text "trace"
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
108 t.datetime "created_at"
109 t.datetime "updated_at"
110 t.datetime "started_at"
111 t.integer "runner_id"
3031209 @ayufan Fix db/schema.rb
ayufan authored
112 t.float "coverage"
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
113 t.integer "commit_id"
114 t.text "commands"
115 t.integer "job_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
116 t.string "name"
117 t.boolean "deploy", default: false
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
118 t.text "options"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
119 t.boolean "allow_failure", default: false, null: false
120 t.string "stage"
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
121 t.integer "trigger_request_id"
317a746 @ayufan Make commit_spec run
ayufan authored
122 t.integer "stage_idx"
123 t.boolean "tag"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
124 t.string "ref"
317a746 @ayufan Make commit_spec run
ayufan authored
125 t.integer "user_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
126 t.string "type"
127 t.string "target_url"
128 t.string "description"
d0e3e82 @ayufan Implement Build Artifacts
ayufan authored
129 t.text "artifacts_file"
e80e3f5 @ayufan Migrate CI::Project to Project
ayufan authored
130 t.integer "gl_project_id"
662f4b9 @grzesiek Add artifacts metadata uploader filed
grzesiek authored
131 t.text "artifacts_metadata"
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
132 end
133
317a746 @ayufan Make commit_spec run
ayufan authored
134 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
f9f6724 @ayufan Added extra index for faster enumeration of CI builds
ayufan authored
135 add_index "ci_builds", ["commit_id", "status", "type"], name: "index_ci_builds_on_commit_id_and_status_and_type", using: :btree
914cfbd @ayufan Implement Commit Status API
ayufan authored
136 add_index "ci_builds", ["commit_id", "type", "name", "ref"], name: "index_ci_builds_on_commit_id_and_type_and_name_and_ref", using: :btree
137 add_index "ci_builds", ["commit_id", "type", "ref"], name: "index_ci_builds_on_commit_id_and_type_and_ref", using: :btree
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
138 add_index "ci_builds", ["commit_id"], name: "index_ci_builds_on_commit_id", using: :btree
e80e3f5 @ayufan Migrate CI::Project to Project
ayufan authored
139 add_index "ci_builds", ["gl_project_id"], name: "index_ci_builds_on_gl_project_id", using: :btree
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
140 add_index "ci_builds", ["project_id", "commit_id"], name: "index_ci_builds_on_project_id_and_commit_id", using: :btree
141 add_index "ci_builds", ["project_id"], name: "index_ci_builds_on_project_id", using: :btree
142 add_index "ci_builds", ["runner_id"], name: "index_ci_builds_on_runner_id", using: :btree
f405954 @YorickPeterse Added indexes for notes.line_code and CI columns
YorickPeterse authored
143 add_index "ci_builds", ["status"], name: "index_ci_builds_on_status", using: :btree
144 add_index "ci_builds", ["type"], name: "index_ci_builds_on_type", using: :btree
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
145
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
146 create_table "ci_commits", force: :cascade do |t|
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
147 t.integer "project_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
148 t.string "ref"
149 t.string "sha"
150 t.string "before_sha"
3031209 @ayufan Fix db/schema.rb
ayufan authored
151 t.text "push_data"
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
152 t.datetime "created_at"
153 t.datetime "updated_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
154 t.boolean "tag", default: false
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
155 t.text "yaml_errors"
156 t.datetime "committed_at"
30c78e7 @ayufan WIP
ayufan authored
157 t.integer "gl_project_id"
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
158 end
159
c6be500 @YorickPeterse Add index on ci_commits.gl_project_id
YorickPeterse authored
160 add_index "ci_commits", ["gl_project_id"], name: "index_ci_commits_on_gl_project_id", using: :btree
912f470 @ayufan Fix ordering issue
ayufan authored
161 add_index "ci_commits", ["project_id", "committed_at", "id"], name: "index_ci_commits_on_project_id_and_committed_at_and_id", using: :btree
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
162 add_index "ci_commits", ["project_id", "committed_at"], name: "index_ci_commits_on_project_id_and_committed_at", using: :btree
163 add_index "ci_commits", ["project_id", "sha"], name: "index_ci_commits_on_project_id_and_sha", using: :btree
164 add_index "ci_commits", ["project_id"], name: "index_ci_commits_on_project_id", using: :btree
165 add_index "ci_commits", ["sha"], name: "index_ci_commits_on_sha", using: :btree
166
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
167 create_table "ci_events", force: :cascade do |t|
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
168 t.integer "project_id"
169 t.integer "user_id"
170 t.integer "is_admin"
171 t.text "description"
172 t.datetime "created_at"
173 t.datetime "updated_at"
174 end
175
176 add_index "ci_events", ["created_at"], name: "index_ci_events_on_created_at", using: :btree
177 add_index "ci_events", ["is_admin"], name: "index_ci_events_on_is_admin", using: :btree
178 add_index "ci_events", ["project_id"], name: "index_ci_events_on_project_id", using: :btree
179
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
180 create_table "ci_jobs", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
181 t.integer "project_id", null: false
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
182 t.text "commands"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
183 t.boolean "active", default: true, null: false
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
184 t.datetime "created_at"
185 t.datetime "updated_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
186 t.string "name"
187 t.boolean "build_branches", default: true, null: false
188 t.boolean "build_tags", default: false, null: false
189 t.string "job_type", default: "parallel"
190 t.string "refs"
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
191 t.datetime "deleted_at"
192 end
193
194 add_index "ci_jobs", ["deleted_at"], name: "index_ci_jobs_on_deleted_at", using: :btree
195 add_index "ci_jobs", ["project_id"], name: "index_ci_jobs_on_project_id", using: :btree
196
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
197 create_table "ci_projects", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
198 t.string "name"
199 t.integer "timeout", default: 3600, null: false
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
200 t.datetime "created_at"
201 t.datetime "updated_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
202 t.string "token"
203 t.string "default_ref"
204 t.string "path"
205 t.boolean "always_build", default: false, null: false
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
206 t.integer "polling_interval"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
207 t.boolean "public", default: false, null: false
208 t.string "ssh_url_to_repo"
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
209 t.integer "gitlab_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
210 t.boolean "allow_git_fetch", default: true, null: false
211 t.string "email_recipients", default: "", null: false
212 t.boolean "email_add_pusher", default: true, null: false
213 t.boolean "email_only_broken_builds", default: true, null: false
214 t.string "skip_refs"
215 t.string "coverage_regex"
216 t.boolean "shared_runners_enabled", default: false
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
217 t.text "generated_yaml_config"
218 end
219
f405954 @YorickPeterse Added indexes for notes.line_code and CI columns
YorickPeterse authored
220 add_index "ci_projects", ["gitlab_id"], name: "index_ci_projects_on_gitlab_id", using: :btree
221 add_index "ci_projects", ["shared_runners_enabled"], name: "index_ci_projects_on_shared_runners_enabled", using: :btree
222
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
223 create_table "ci_runner_projects", force: :cascade do |t|
e80e3f5 @ayufan Migrate CI::Project to Project
ayufan authored
224 t.integer "runner_id", null: false
225 t.integer "project_id"
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
226 t.datetime "created_at"
227 t.datetime "updated_at"
e80e3f5 @ayufan Migrate CI::Project to Project
ayufan authored
228 t.integer "gl_project_id"
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
229 end
230
e80e3f5 @ayufan Migrate CI::Project to Project
ayufan authored
231 add_index "ci_runner_projects", ["gl_project_id"], name: "index_ci_runner_projects_on_gl_project_id", using: :btree
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
232 add_index "ci_runner_projects", ["runner_id"], name: "index_ci_runner_projects_on_runner_id", using: :btree
233
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
234 create_table "ci_runners", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
235 t.string "token"
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
236 t.datetime "created_at"
237 t.datetime "updated_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
238 t.string "description"
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
239 t.datetime "contacted_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
240 t.boolean "active", default: true, null: false
241 t.boolean "is_shared", default: false
242 t.string "name"
243 t.string "version"
244 t.string "revision"
245 t.string "platform"
246 t.string "architecture"
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
247 end
248
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
249 create_table "ci_services", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
250 t.string "type"
251 t.string "title"
252 t.integer "project_id", null: false
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
253 t.datetime "created_at"
254 t.datetime "updated_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
255 t.boolean "active", default: false, null: false
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
256 t.text "properties"
257 end
258
259 add_index "ci_services", ["project_id"], name: "index_ci_services_on_project_id", using: :btree
260
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
261 create_table "ci_sessions", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
262 t.string "session_id", null: false
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
263 t.text "data"
264 t.datetime "created_at"
265 t.datetime "updated_at"
266 end
267
268 add_index "ci_sessions", ["session_id"], name: "index_ci_sessions_on_session_id", using: :btree
269 add_index "ci_sessions", ["updated_at"], name: "index_ci_sessions_on_updated_at", using: :btree
270
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
271 create_table "ci_taggings", force: :cascade do |t|
9a3d0f1 @ayufan Add rake task to migrate CI tags
ayufan authored
272 t.integer "tag_id"
273 t.integer "taggable_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
274 t.string "taggable_type"
9a3d0f1 @ayufan Add rake task to migrate CI tags
ayufan authored
275 t.integer "tagger_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
276 t.string "tagger_type"
9a3d0f1 @ayufan Add rake task to migrate CI tags
ayufan authored
277 t.string "context", limit: 128
278 t.datetime "created_at"
279 end
280
281 add_index "ci_taggings", ["tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type"], name: "ci_taggings_idx", unique: true, using: :btree
282 add_index "ci_taggings", ["taggable_id", "taggable_type", "context"], name: "index_ci_taggings_on_taggable_id_and_taggable_type_and_context", using: :btree
283
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
284 create_table "ci_tags", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
285 t.string "name"
286 t.integer "taggings_count", default: 0
9a3d0f1 @ayufan Add rake task to migrate CI tags
ayufan authored
287 end
288
289 add_index "ci_tags", ["name"], name: "index_ci_tags_on_name", unique: true, using: :btree
290
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
291 create_table "ci_trigger_requests", force: :cascade do |t|
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
292 t.integer "trigger_id", null: false
293 t.text "variables"
294 t.datetime "created_at"
295 t.datetime "updated_at"
296 t.integer "commit_id"
297 end
298
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
299 create_table "ci_triggers", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
300 t.string "token"
e80e3f5 @ayufan Migrate CI::Project to Project
ayufan authored
301 t.integer "project_id"
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
302 t.datetime "deleted_at"
303 t.datetime "created_at"
304 t.datetime "updated_at"
e80e3f5 @ayufan Migrate CI::Project to Project
ayufan authored
305 t.integer "gl_project_id"
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
306 end
307
308 add_index "ci_triggers", ["deleted_at"], name: "index_ci_triggers_on_deleted_at", using: :btree
e80e3f5 @ayufan Migrate CI::Project to Project
ayufan authored
309 add_index "ci_triggers", ["gl_project_id"], name: "index_ci_triggers_on_gl_project_id", using: :btree
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
310
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
311 create_table "ci_variables", force: :cascade do |t|
e80e3f5 @ayufan Migrate CI::Project to Project
ayufan authored
312 t.integer "project_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
313 t.string "key"
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
314 t.text "value"
315 t.text "encrypted_value"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
316 t.string "encrypted_value_salt"
317 t.string "encrypted_value_iv"
e80e3f5 @ayufan Migrate CI::Project to Project
ayufan authored
318 t.integer "gl_project_id"
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
319 end
320
e80e3f5 @ayufan Migrate CI::Project to Project
ayufan authored
321 add_index "ci_variables", ["gl_project_id"], name: "index_ci_variables_on_gl_project_id", using: :btree
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
322
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
323 create_table "ci_web_hooks", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
324 t.string "url", null: false
325 t.integer "project_id", null: false
046b283 @DouweM Groundwork for merging CI into CE
DouweM authored
326 t.datetime "created_at"
327 t.datetime "updated_at"
328 end
329
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
330 create_table "deploy_keys_projects", force: :cascade do |t|
7060668 @randx Fixed db schema
randx authored
331 t.integer "deploy_key_id", null: false
332 t.integer "project_id", null: false
9a676cc @jvanbaarsen Added tag_push_events to the web_hooks
jvanbaarsen authored
333 t.datetime "created_at"
334 t.datetime "updated_at"
a735ce2 @randx migrations for ssh key STI and deploy keys <-> projects relation
randx authored
335 end
ae2233b @randx Improve perfomance by using project.last_activity_at in project_last_…
randx authored
336
7060668 @randx Fixed db schema
randx authored
337 add_index "deploy_keys_projects", ["project_id"], name: "index_deploy_keys_projects_on_project_id", using: :btree
9787c37 @randx More db index
randx authored
338
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
339 create_table "emails", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
340 t.integer "user_id", null: false
341 t.string "email", null: false
29cfd33 @jhollingsworth Add email aliases for users
jhollingsworth authored
342 t.datetime "created_at"
343 t.datetime "updated_at"
344 end
345
346 add_index "emails", ["email"], name: "index_emails_on_email", unique: true, using: :btree
347 add_index "emails", ["user_id"], name: "index_emails_on_user_id", using: :btree
348
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
349 create_table "events", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
350 t.string "target_type"
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
351 t.integer "target_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
352 t.string "title"
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
353 t.text "data"
354 t.integer "project_id"
9a676cc @jvanbaarsen Added tag_push_events to the web_hooks
jvanbaarsen authored
355 t.datetime "created_at"
356 t.datetime "updated_at"
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
357 t.integer "action"
358 t.integer "author_id"
359 end
360
7060668 @randx Fixed db schema
randx authored
361 add_index "events", ["action"], name: "index_events_on_action", using: :btree
362 add_index "events", ["author_id"], name: "index_events_on_author_id", using: :btree
363 add_index "events", ["created_at"], name: "index_events_on_created_at", using: :btree
364 add_index "events", ["project_id"], name: "index_events_on_project_id", using: :btree
365 add_index "events", ["target_id"], name: "index_events_on_target_id", using: :btree
366 add_index "events", ["target_type"], name: "index_events_on_target_type", using: :btree
367
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
368 create_table "forked_project_links", force: :cascade do |t|
7060668 @randx Fixed db schema
randx authored
369 t.integer "forked_to_project_id", null: false
370 t.integer "forked_from_project_id", null: false
9a676cc @jvanbaarsen Added tag_push_events to the web_hooks
jvanbaarsen authored
371 t.datetime "created_at"
372 t.datetime "updated_at"
ae33fdf @amacarthur updated fork feature to use gitlab-shell for v5 of gitlab
amacarthur authored
373 end
374
7060668 @randx Fixed db schema
randx authored
375 add_index "forked_project_links", ["forked_to_project_id"], name: "index_forked_project_links_on_forked_to_project_id", unique: true, using: :btree
ae33fdf @amacarthur updated fork feature to use gitlab-shell for v5 of gitlab
amacarthur authored
376
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
377 create_table "identities", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
378 t.string "extern_uid"
379 t.string "provider"
dbca8c9 @randx Add timestamps to identity
randx authored
380 t.integer "user_id"
381 t.datetime "created_at"
382 t.datetime "updated_at"
1a80d13 @vsizov Multi-provider auth. LDAP is not reworked
vsizov authored
383 end
384
3e97ac2 @randx Add index on order columns
randx authored
385 add_index "identities", ["created_at", "id"], name: "index_identities_on_created_at_and_id", using: :btree
1a80d13 @vsizov Multi-provider auth. LDAP is not reworked
vsizov authored
386 add_index "identities", ["user_id"], name: "index_identities_on_user_id", using: :btree
387
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
388 create_table "issues", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
389 t.string "title"
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
390 t.integer "assignee_id"
391 t.integer "author_id"
392 t.integer "project_id"
cf890b2 @randx Add User#last_credential_check_at
randx authored
393 t.datetime "created_at"
394 t.datetime "updated_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
395 t.integer "position", default: 0
396 t.string "branch_name"
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
397 t.text "description"
398 t.integer "milestone_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
399 t.string "state"
125c07f @randx Add iid field to issues and MR
randx authored
400 t.integer "iid"
36bd6c8 @DouweM Show who last edited a comment if it wasn't the original author
DouweM authored
401 t.integer "updated_by_id"
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
402 end
403
7060668 @randx Fixed db schema
randx authored
404 add_index "issues", ["assignee_id"], name: "index_issues_on_assignee_id", using: :btree
405 add_index "issues", ["author_id"], name: "index_issues_on_author_id", using: :btree
3e97ac2 @randx Add index on order columns
randx authored
406 add_index "issues", ["created_at", "id"], name: "index_issues_on_created_at_and_id", using: :btree
7060668 @randx Fixed db schema
randx authored
407 add_index "issues", ["created_at"], name: "index_issues_on_created_at", using: :btree
408 add_index "issues", ["milestone_id"], name: "index_issues_on_milestone_id", using: :btree
c46a061 @randx Add uniq db index on project_id+iid
randx authored
409 add_index "issues", ["project_id", "iid"], name: "index_issues_on_project_id_and_iid", unique: true, using: :btree
7060668 @randx Fixed db schema
randx authored
410 add_index "issues", ["project_id"], name: "index_issues_on_project_id", using: :btree
e4ae8b1 @YorickPeterse Updated DB schema with new issues/projects indexes
YorickPeterse authored
411 add_index "issues", ["state"], name: "index_issues_on_state", using: :btree
7060668 @randx Fixed db schema
randx authored
412 add_index "issues", ["title"], name: "index_issues_on_title", using: :btree
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
413
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
414 create_table "keys", force: :cascade do |t|
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
415 t.integer "user_id"
cf890b2 @randx Add User#last_credential_check_at
randx authored
416 t.datetime "created_at"
417 t.datetime "updated_at"
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
418 t.text "key"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
419 t.string "title"
420 t.string "type"
421 t.string "fingerprint"
422 t.boolean "public", default: false, null: false
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
423 end
424
3e97ac2 @randx Add index on order columns
randx authored
425 add_index "keys", ["created_at", "id"], name: "index_keys_on_created_at_and_id", using: :btree
7060668 @randx Fixed db schema
randx authored
426 add_index "keys", ["user_id"], name: "index_keys_on_user_id", using: :btree
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
427
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
428 create_table "label_links", force: :cascade do |t|
03654a6 @randx Label and LabelLink models for implementing own GitLab labels
randx authored
429 t.integer "label_id"
430 t.integer "target_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
431 t.string "target_type"
03654a6 @randx Label and LabelLink models for implementing own GitLab labels
randx authored
432 t.datetime "created_at"
433 t.datetime "updated_at"
434 end
435
cc33168 @randx Add indicies to labels
randx authored
436 add_index "label_links", ["label_id"], name: "index_label_links_on_label_id", using: :btree
437 add_index "label_links", ["target_id", "target_type"], name: "index_label_links_on_target_id_and_target_type", using: :btree
438
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
439 create_table "labels", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
440 t.string "title"
441 t.string "color"
03654a6 @randx Label and LabelLink models for implementing own GitLab labels
randx authored
442 t.integer "project_id"
443 t.datetime "created_at"
444 t.datetime "updated_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
445 t.boolean "template", default: false
03654a6 @randx Label and LabelLink models for implementing own GitLab labels
randx authored
446 end
447
cc33168 @randx Add indicies to labels
randx authored
448 add_index "labels", ["project_id"], name: "index_labels_on_project_id", using: :btree
449
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
450 create_table "lfs_objects", force: :cascade do |t|
873f336 Increase LFS objects size column
Drew Blessing authored
451 t.string "oid", null: false
452 t.integer "size", limit: 8, null: false
14032d8 @maxlazio Add support for git lfs.
maxlazio authored
453 t.datetime "created_at"
454 t.datetime "updated_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
455 t.string "file"
14032d8 @maxlazio Add support for git lfs.
maxlazio authored
456 end
457
84c71e5 @maxlazio Add unique to oid index for lfs object.
maxlazio authored
458 add_index "lfs_objects", ["oid"], name: "index_lfs_objects_on_oid", unique: true, using: :btree
14032d8 @maxlazio Add support for git lfs.
maxlazio authored
459
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
460 create_table "lfs_objects_projects", force: :cascade do |t|
14032d8 @maxlazio Add support for git lfs.
maxlazio authored
461 t.integer "lfs_object_id", null: false
462 t.integer "project_id", null: false
463 t.datetime "created_at"
464 t.datetime "updated_at"
465 end
466
467 add_index "lfs_objects_projects", ["project_id"], name: "index_lfs_objects_projects_on_project_id", using: :btree
468
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
469 create_table "members", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
470 t.integer "access_level", null: false
471 t.integer "source_id", null: false
472 t.string "source_type", null: false
1e97864 @DouweM Add invite data to member.
DouweM authored
473 t.integer "user_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
474 t.integer "notification_level", null: false
475 t.string "type"
3503b50 @randx Add members table migration
randx authored
476 t.datetime "created_at"
477 t.datetime "updated_at"
1e97864 @DouweM Add invite data to member.
DouweM authored
478 t.integer "created_by_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
479 t.string "invite_email"
480 t.string "invite_token"
1e97864 @DouweM Add invite data to member.
DouweM authored
481 t.datetime "invite_accepted_at"
3503b50 @randx Add members table migration
randx authored
482 end
483
13af7de @randx Fix migration and association for new members table
randx authored
484 add_index "members", ["access_level"], name: "index_members_on_access_level", using: :btree
3e97ac2 @randx Add index on order columns
randx authored
485 add_index "members", ["created_at", "id"], name: "index_members_on_created_at_and_id", using: :btree
1e97864 @DouweM Add invite data to member.
DouweM authored
486 add_index "members", ["invite_token"], name: "index_members_on_invite_token", unique: true, using: :btree
13af7de @randx Fix migration and association for new members table
randx authored
487 add_index "members", ["source_id", "source_type"], name: "index_members_on_source_id_and_source_type", using: :btree
488 add_index "members", ["type"], name: "index_members_on_type", using: :btree
489 add_index "members", ["user_id"], name: "index_members_on_user_id", using: :btree
490
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
491 create_table "merge_request_diffs", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
492 t.string "state"
3031209 @ayufan Fix db/schema.rb
ayufan authored
493 t.text "st_commits"
494 t.text "st_diffs"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
495 t.integer "merge_request_id", null: false
c983e8e @randx Create separate table to store Merge request commits/diffs
randx authored
496 t.datetime "created_at"
497 t.datetime "updated_at"
577f2fb @DouweM Save and use actual diff base commit for MR diff highlighting
DouweM authored
498 t.string "base_commit_sha"
c983e8e @randx Create separate table to store Merge request commits/diffs
randx authored
499 end
500
93bc67a @gussan Add index_merge_request_diffs_on_merge_request_id
gussan authored
501 add_index "merge_request_diffs", ["merge_request_id"], name: "index_merge_request_diffs_on_merge_request_id", unique: true, using: :btree
502
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
503 create_table "merge_requests", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
504 t.string "target_branch", null: false
505 t.string "source_branch", null: false
506 t.integer "source_project_id", null: false
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
507 t.integer "author_id"
508 t.integer "assignee_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
509 t.string "title"
cf890b2 @randx Add User#last_credential_check_at
randx authored
510 t.datetime "created_at"
511 t.datetime "updated_at"
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
512 t.integer "milestone_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
513 t.string "state"
514 t.string "merge_status"
515 t.integer "target_project_id", null: false
125c07f @randx Add iid field to issues and MR
randx authored
516 t.integer "iid"
76a0739 @randx Add description to MergeRequest model
randx authored
517 t.text "description"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
518 t.integer "position", default: 0
1961b59 @randx Add locked_at to merge request
randx authored
519 t.datetime "locked_at"
36bd6c8 @DouweM Show who last edited a comment if it wasn't the original author
DouweM authored
520 t.integer "updated_by_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
521 t.string "merge_error"
cfc95b8 @ZJvandeWeg Fix schema
ZJvandeWeg authored
522 t.text "merge_params"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
523 t.boolean "merge_when_build_succeeds", default: false, null: false
cfc95b8 @ZJvandeWeg Fix schema
ZJvandeWeg authored
524 t.integer "merge_user_id"
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
525 end
526
7060668 @randx Fixed db schema
randx authored
527 add_index "merge_requests", ["assignee_id"], name: "index_merge_requests_on_assignee_id", using: :btree
528 add_index "merge_requests", ["author_id"], name: "index_merge_requests_on_author_id", using: :btree
3e97ac2 @randx Add index on order columns
randx authored
529 add_index "merge_requests", ["created_at", "id"], name: "index_merge_requests_on_created_at_and_id", using: :btree
7060668 @randx Fixed db schema
randx authored
530 add_index "merge_requests", ["created_at"], name: "index_merge_requests_on_created_at", using: :btree
531 add_index "merge_requests", ["milestone_id"], name: "index_merge_requests_on_milestone_id", using: :btree
532 add_index "merge_requests", ["source_branch"], name: "index_merge_requests_on_source_branch", using: :btree
9a676cc @jvanbaarsen Added tag_push_events to the web_hooks
jvanbaarsen authored
533 add_index "merge_requests", ["source_project_id"], name: "index_merge_requests_on_source_project_id", using: :btree
7060668 @randx Fixed db schema
randx authored
534 add_index "merge_requests", ["target_branch"], name: "index_merge_requests_on_target_branch", using: :btree
c46a061 @randx Add uniq db index on project_id+iid
randx authored
535 add_index "merge_requests", ["target_project_id", "iid"], name: "index_merge_requests_on_target_project_id_and_iid", unique: true, using: :btree
7060668 @randx Fixed db schema
randx authored
536 add_index "merge_requests", ["title"], name: "index_merge_requests_on_title", using: :btree
537
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
538 create_table "milestones", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
539 t.string "title", null: false
540 t.integer "project_id", null: false
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
541 t.text "description"
542 t.date "due_date"
9a676cc @jvanbaarsen Added tag_push_events to the web_hooks
jvanbaarsen authored
543 t.datetime "created_at"
544 t.datetime "updated_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
545 t.string "state"
625fb2f @randx Add iids to milestones. Moved iids logic to separate concern
randx authored
546 t.integer "iid"
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
547 end
548
3e97ac2 @randx Add index on order columns
randx authored
549 add_index "milestones", ["created_at", "id"], name: "index_milestones_on_created_at_and_id", using: :btree
7060668 @randx Fixed db schema
randx authored
550 add_index "milestones", ["due_date"], name: "index_milestones_on_due_date", using: :btree
c46a061 @randx Add uniq db index on project_id+iid
randx authored
551 add_index "milestones", ["project_id", "iid"], name: "index_milestones_on_project_id_and_iid", unique: true, using: :btree
7060668 @randx Fixed db schema
randx authored
552 add_index "milestones", ["project_id"], name: "index_milestones_on_project_id", using: :btree
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
553 add_index "milestones", ["title"], name: "index_milestones_on_title", using: :btree
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
554
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
555 create_table "namespaces", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
556 t.string "name", null: false
557 t.string "path", null: false
edd2143 @randx Namespaces.owner_id can be null
randx authored
558 t.integer "owner_id"
9a676cc @jvanbaarsen Added tag_push_events to the web_hooks
jvanbaarsen authored
559 t.datetime "created_at"
560 t.datetime "updated_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
561 t.string "type"
562 t.string "description", default: "", null: false
563 t.string "avatar"
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
564 end
565
3e97ac2 @randx Add index on order columns
randx authored
566 add_index "namespaces", ["created_at", "id"], name: "index_namespaces_on_created_at_and_id", using: :btree
76c6aeb @randx Merge CI factories and CI spec/support with GitLab
randx authored
567 add_index "namespaces", ["name"], name: "index_namespaces_on_name", unique: true, using: :btree
7060668 @randx Fixed db schema
randx authored
568 add_index "namespaces", ["owner_id"], name: "index_namespaces_on_owner_id", using: :btree
ed4c719 @vsizov Fix importers with OCC
vsizov authored
569 add_index "namespaces", ["path"], name: "index_namespaces_on_path", unique: true, using: :btree
7060668 @randx Fixed db schema
randx authored
570 add_index "namespaces", ["type"], name: "index_namespaces_on_type", using: :btree
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
571
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
572 create_table "notes", force: :cascade do |t|
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
573 t.text "note"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
574 t.string "noteable_type"
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
575 t.integer "author_id"
cf890b2 @randx Add User#last_credential_check_at
randx authored
576 t.datetime "created_at"
577 t.datetime "updated_at"
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
578 t.integer "project_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
579 t.string "attachment"
580 t.string "line_code"
581 t.string "commit_id"
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
582 t.integer "noteable_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
583 t.boolean "system", default: false, null: false
3031209 @ayufan Fix db/schema.rb
ayufan authored
584 t.text "st_diff"
36bd6c8 @DouweM Show who last edited a comment if it wasn't the original author
DouweM authored
585 t.integer "updated_by_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
586 t.boolean "is_award", default: false, null: false
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
587 end
588
7060668 @randx Fixed db schema
randx authored
589 add_index "notes", ["author_id"], name: "index_notes_on_author_id", using: :btree
590 add_index "notes", ["commit_id"], name: "index_notes_on_commit_id", using: :btree
3e97ac2 @randx Add index on order columns
randx authored
591 add_index "notes", ["created_at", "id"], name: "index_notes_on_created_at_and_id", using: :btree
7060668 @randx Fixed db schema
randx authored
592 add_index "notes", ["created_at"], name: "index_notes_on_created_at", using: :btree
fdd5a8f @vsizov addressing comments
vsizov authored
593 add_index "notes", ["is_award"], name: "index_notes_on_is_award", using: :btree
f405954 @YorickPeterse Added indexes for notes.line_code and CI columns
YorickPeterse authored
594 add_index "notes", ["line_code"], name: "index_notes_on_line_code", using: :btree
7060668 @randx Fixed db schema
randx authored
595 add_index "notes", ["noteable_id", "noteable_type"], name: "index_notes_on_noteable_id_and_noteable_type", using: :btree
596 add_index "notes", ["noteable_type"], name: "index_notes_on_noteable_type", using: :btree
597 add_index "notes", ["project_id", "noteable_type"], name: "index_notes_on_project_id_and_noteable_type", using: :btree
598 add_index "notes", ["project_id"], name: "index_notes_on_project_id", using: :btree
c685024 @jacobvosmaer Add an index for Note#updated_at
jacobvosmaer authored
599 add_index "notes", ["updated_at"], name: "index_notes_on_updated_at", using: :btree
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
600
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
601 create_table "oauth_access_grants", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
602 t.integer "resource_owner_id", null: false
603 t.integer "application_id", null: false
604 t.string "token", null: false
605 t.integer "expires_in", null: false
606 t.text "redirect_uri", null: false
607 t.datetime "created_at", null: false
e41dadc @vsizov Doorkeeper integration
vsizov authored
608 t.datetime "revoked_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
609 t.string "scopes"
e41dadc @vsizov Doorkeeper integration
vsizov authored
610 end
611
612 add_index "oauth_access_grants", ["token"], name: "index_oauth_access_grants_on_token", unique: true, using: :btree
613
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
614 create_table "oauth_access_tokens", force: :cascade do |t|
e41dadc @vsizov Doorkeeper integration
vsizov authored
615 t.integer "resource_owner_id"
616 t.integer "application_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
617 t.string "token", null: false
618 t.string "refresh_token"
e41dadc @vsizov Doorkeeper integration
vsizov authored
619 t.integer "expires_in"
620 t.datetime "revoked_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
621 t.datetime "created_at", null: false
622 t.string "scopes"
e41dadc @vsizov Doorkeeper integration
vsizov authored
623 end
624
625 add_index "oauth_access_tokens", ["refresh_token"], name: "index_oauth_access_tokens_on_refresh_token", unique: true, using: :btree
626 add_index "oauth_access_tokens", ["resource_owner_id"], name: "index_oauth_access_tokens_on_resource_owner_id", using: :btree
627 add_index "oauth_access_tokens", ["token"], name: "index_oauth_access_tokens_on_token", unique: true, using: :btree
628
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
629 create_table "oauth_applications", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
630 t.string "name", null: false
631 t.string "uid", null: false
632 t.string "secret", null: false
633 t.text "redirect_uri", null: false
634 t.string "scopes", default: "", null: false
e41dadc @vsizov Doorkeeper integration
vsizov authored
635 t.datetime "created_at"
636 t.datetime "updated_at"
637 t.integer "owner_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
638 t.string "owner_type"
e41dadc @vsizov Doorkeeper integration
vsizov authored
639 end
640
641 add_index "oauth_applications", ["owner_id", "owner_type"], name: "index_oauth_applications_on_owner_id_and_owner_type", using: :btree
642 add_index "oauth_applications", ["uid"], name: "index_oauth_applications_on_uid", unique: true, using: :btree
643
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
644 create_table "project_import_data", force: :cascade do |t|
7d98c88 @DouweM Move import data out of project so it doesn't take ages to load.
DouweM authored
645 t.integer "project_id"
646 t.text "data"
647 end
648
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
649 create_table "projects", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
650 t.string "name"
651 t.string "path"
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
652 t.text "description"
cf890b2 @randx Add User#last_credential_check_at
randx authored
653 t.datetime "created_at"
654 t.datetime "updated_at"
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
655 t.integer "creator_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
656 t.boolean "issues_enabled", default: true, null: false
657 t.boolean "wall_enabled", default: true, null: false
658 t.boolean "merge_requests_enabled", default: true, null: false
659 t.boolean "wiki_enabled", default: true, null: false
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
660 t.integer "namespace_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
661 t.string "issues_tracker", default: "gitlab", null: false
662 t.string "issues_tracker_id"
663 t.boolean "snippets_enabled", default: true, null: false
25856a4 @randx save each notification setting with ajax on change
randx authored
664 t.datetime "last_activity_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
665 t.string "import_url"
666 t.integer "visibility_level", default: 0, null: false
667 t.boolean "archived", default: false, null: false
668 t.string "avatar"
669 t.string "import_status"
670 t.float "repository_size", default: 0.0
671 t.integer "star_count", default: 0, null: false
672 t.string "import_type"
673 t.string "import_source"
674 t.integer "commit_count", default: 0
5311777 @DouweM Add import_error to project.
DouweM authored
675 t.text "import_error"
91cdb08 @ayufan Rename columns and rename migrations
ayufan authored
676 t.integer "ci_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
677 t.boolean "builds_enabled", default: true, null: false
678 t.boolean "shared_runners_enabled", default: true, null: false
91cdb08 @ayufan Rename columns and rename migrations
ayufan authored
679 t.string "runners_token"
e80e3f5 @ayufan Migrate CI::Project to Project
ayufan authored
680 t.string "build_coverage_regex"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
681 t.boolean "build_allow_git_fetch", default: true, null: false
682 t.integer "build_timeout", default: 3600, null: false
f255313 @joshfng Update CHANGELOG
joshfng authored
683 t.boolean "pending_delete", default: false
b4c3613 @ayufan Rename allow_guest_to_access_builds to public_builds
ayufan authored
684 t.boolean "public_builds", default: true, null: false
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
685 end
686
e80e3f5 @ayufan Migrate CI::Project to Project
ayufan authored
687 add_index "projects", ["builds_enabled", "shared_runners_enabled"], name: "index_projects_on_builds_enabled_and_shared_runners_enabled", using: :btree
688 add_index "projects", ["builds_enabled"], name: "index_projects_on_builds_enabled", using: :btree
91cdb08 @ayufan Rename columns and rename migrations
ayufan authored
689 add_index "projects", ["ci_id"], name: "index_projects_on_ci_id", using: :btree
3e97ac2 @randx Add index on order columns
randx authored
690 add_index "projects", ["created_at", "id"], name: "index_projects_on_created_at_and_id", using: :btree
9a676cc @jvanbaarsen Added tag_push_events to the web_hooks
jvanbaarsen authored
691 add_index "projects", ["creator_id"], name: "index_projects_on_creator_id", using: :btree
7060668 @randx Fixed db schema
randx authored
692 add_index "projects", ["last_activity_at"], name: "index_projects_on_last_activity_at", using: :btree
693 add_index "projects", ["namespace_id"], name: "index_projects_on_namespace_id", using: :btree
01c7769 @ayufan Add projects path index
ayufan authored
694 add_index "projects", ["path"], name: "index_projects_on_path", using: :btree
91cdb08 @ayufan Rename columns and rename migrations
ayufan authored
695 add_index "projects", ["runners_token"], name: "index_projects_on_runners_token", using: :btree
9b5c7a4 @cirosantilli Add star count, view logic, more tests.
cirosantilli authored
696 add_index "projects", ["star_count"], name: "index_projects_on_star_count", using: :btree
e4ae8b1 @YorickPeterse Updated DB schema with new issues/projects indexes
YorickPeterse authored
697 add_index "projects", ["visibility_level"], name: "index_projects_on_visibility_level", using: :btree
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
698
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
699 create_table "protected_branches", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
700 t.integer "project_id", null: false
701 t.string "name", null: false
9a676cc @jvanbaarsen Added tag_push_events to the web_hooks
jvanbaarsen authored
702 t.datetime "created_at"
703 t.datetime "updated_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
704 t.boolean "developers_can_push", default: false, null: false
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
705 end
706
7060668 @randx Fixed db schema
randx authored
707 add_index "protected_branches", ["project_id"], name: "index_protected_branches_on_project_id", using: :btree
9787c37 @randx More db index
randx authored
708
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
709 create_table "releases", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
710 t.string "tag"
1c4d1c3 @randx Add release model
randx authored
711 t.text "description"
712 t.integer "project_id"
713 t.datetime "created_at"
714 t.datetime "updated_at"
715 end
716
717 add_index "releases", ["project_id", "tag"], name: "index_releases_on_project_id_and_tag", using: :btree
718 add_index "releases", ["project_id"], name: "index_releases_on_project_id", using: :btree
719
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
720 create_table "sent_notifications", force: :cascade do |t|
f76eac5 @DouweM Reply by email POC
DouweM authored
721 t.integer "project_id"
722 t.integer "noteable_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
723 t.string "noteable_type"
f76eac5 @DouweM Reply by email POC
DouweM authored
724 t.integer "recipient_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
725 t.string "commit_id"
726 t.string "reply_key", null: false
727 t.string "line_code"
f76eac5 @DouweM Reply by email POC
DouweM authored
728 end
729
730 add_index "sent_notifications", ["reply_key"], name: "index_sent_notifications_on_reply_key", unique: true, using: :btree
731
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
732 create_table "services", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
733 t.string "type"
734 t.string "title"
09d3d35 @maxlazio Remove not null constraint on project_id in services.
maxlazio authored
735 t.integer "project_id"
577f2fb @DouweM Save and use actual diff base commit for MR diff highlighting
DouweM authored
736 t.datetime "created_at", null: false
737 t.datetime "updated_at", null: false
738 t.boolean "active", null: false
a0dbcd2 Serialize services properties
Drew Blessing authored
739 t.text "properties"
577f2fb @DouweM Save and use actual diff base commit for MR diff highlighting
DouweM authored
740 t.boolean "template", default: false
741 t.boolean "push_events", default: true
742 t.boolean "issues_events", default: true
743 t.boolean "merge_requests_events", default: true
744 t.boolean "tag_push_events", default: true
745 t.boolean "note_events", default: true, null: false
746 t.boolean "build_events", default: false, null: false
747 t.string "category", default: "common", null: false
748 t.boolean "default", default: false
b4ee6f5 @YorickPeterse Greatly improve external_issue_tracker performance
YorickPeterse authored
749 end
750
751 add_index "services", ["category"], name: "index_services_on_category", using: :btree
aaa7a06 @randx Add index on order columns for services table
randx authored
752 add_index "services", ["created_at", "id"], name: "index_services_on_created_at_and_id", using: :btree
b4ee6f5 @YorickPeterse Greatly improve external_issue_tracker performance
YorickPeterse authored
753 add_index "services", ["default"], name: "index_services_on_default", using: :btree
7060668 @randx Fixed db schema
randx authored
754 add_index "services", ["project_id"], name: "index_services_on_project_id", using: :btree
7fc95d8 @YorickPeterse Added index on services.template
YorickPeterse authored
755 add_index "services", ["template"], name: "index_services_on_template", using: :btree
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
756
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
757 create_table "snippets", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
758 t.string "title"
3031209 @ayufan Fix db/schema.rb
ayufan authored
759 t.text "content"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
760 t.integer "author_id", null: false
5b35000 @Andrew8xx8 Snippets feature refactored. Tests now use spinach
Andrew8xx8 authored
761 t.integer "project_id"
cf890b2 @randx Add User#last_credential_check_at
randx authored
762 t.datetime "created_at"
763 t.datetime "updated_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
764 t.string "file_name"
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
765 t.datetime "expires_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
766 t.string "type"
767 t.integer "visibility_level", default: 0, null: false
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
768 end
769
7060668 @randx Fixed db schema
randx authored
770 add_index "snippets", ["author_id"], name: "index_snippets_on_author_id", using: :btree
3e97ac2 @randx Add index on order columns
randx authored
771 add_index "snippets", ["created_at", "id"], name: "index_snippets_on_created_at_and_id", using: :btree
7060668 @randx Fixed db schema
randx authored
772 add_index "snippets", ["created_at"], name: "index_snippets_on_created_at", using: :btree
773 add_index "snippets", ["expires_at"], name: "index_snippets_on_expires_at", using: :btree
774 add_index "snippets", ["project_id"], name: "index_snippets_on_project_id", using: :btree
6c3cd24 @vsizov Add index for snippet's updated_at
vsizov authored
775 add_index "snippets", ["updated_at"], name: "index_snippets_on_updated_at", using: :btree
47f539f @vsizov Snippets: public/internal/private
vsizov authored
776 add_index "snippets", ["visibility_level"], name: "index_snippets_on_visibility_level", using: :btree
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
777
d20e75a @stanhu Support Akismet spam checking for creation of issues via API
stanhu authored
778 create_table "spam_logs", force: :cascade do |t|
779 t.integer "user_id"
780 t.string "source_ip"
781 t.string "user_agent"
782 t.boolean "via_api"
783 t.integer "project_id"
784 t.string "noteable_type"
785 t.string "title"
786 t.text "description"
787 t.datetime "created_at", null: false
788 t.datetime "updated_at", null: false
789 end
790
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
791 create_table "subscriptions", force: :cascade do |t|
9698b36 @vsizov Subscription
vsizov authored
792 t.integer "user_id"
410d25c @vsizov rename table subscribe; make it polymorfic
vsizov authored
793 t.integer "subscribable_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
794 t.string "subscribable_type"
9698b36 @vsizov Subscription
vsizov authored
795 t.boolean "subscribed"
796 t.datetime "created_at"
797 t.datetime "updated_at"
798 end
799
410d25c @vsizov rename table subscribe; make it polymorfic
vsizov authored
800 add_index "subscriptions", ["subscribable_id", "subscribable_type", "user_id"], name: "subscriptions_user_id_and_ref_fields", unique: true, using: :btree
09ef69b @vsizov code folding fix
vsizov authored
801
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
802 create_table "taggings", force: :cascade do |t|
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
803 t.integer "tag_id"
804 t.integer "taggable_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
805 t.string "taggable_type"
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
806 t.integer "tagger_id"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
807 t.string "tagger_type"
808 t.string "context"
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
809 t.datetime "created_at"
810 end
811
44afcd2 @stanhu Fix DB error when trying to tag a repository
stanhu authored
812 add_index "taggings", ["tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type"], name: "taggings_idx", unique: true, using: :btree
75c9c68 @randx Rebuild schame from migrations
randx authored
813 add_index "taggings", ["taggable_id", "taggable_type", "context"], name: "index_taggings_on_taggable_id_and_taggable_type_and_context", using: :btree
814
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
815 create_table "tags", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
816 t.string "name"
817 t.integer "taggings_count", default: 0
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
818 end
819
44afcd2 @stanhu Fix DB error when trying to tag a repository
stanhu authored
820 add_index "tags", ["name"], name: "index_tags_on_name", unique: true, using: :btree
821
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
822 create_table "users", force: :cascade do |t|
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
823 t.string "email", default: "", null: false
824 t.string "encrypted_password", default: "", null: false
825 t.string "reset_password_token"
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
826 t.datetime "reset_password_sent_at"
827 t.datetime "remember_created_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
828 t.integer "sign_in_count", default: 0
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
829 t.datetime "current_sign_in_at"
830 t.datetime "last_sign_in_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
831 t.string "current_sign_in_ip"
832 t.string "last_sign_in_ip"
833 t.datetime "created_at"
834 t.datetime "updated_at"
835 t.string "name"
836 t.boolean "admin", default: false, null: false
837 t.integer "projects_limit", default: 10
838 t.string "skype", default: "", null: false
839 t.string "linkedin", default: "", null: false
840 t.string "twitter", default: "", null: false
841 t.string "authentication_token"
842 t.integer "theme_id", default: 1, null: false
843 t.string "bio"
844 t.integer "failed_attempts", default: 0
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
845 t.datetime "locked_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
846 t.string "username"
847 t.boolean "can_create_group", default: true, null: false
848 t.boolean "can_create_team", default: true, null: false
849 t.string "state"
850 t.integer "color_scheme_id", default: 1, null: false
851 t.integer "notification_level", default: 1, null: false
94be732 @randx Add password_expires_at to users table
randx authored
852 t.datetime "password_expires_at"
6838304 @randx Force user password change for users created by admin
randx authored
853 t.integer "created_by_id"
ebcc810 @randx Remove project dropdown and fix db sche,a
randx authored
854 t.datetime "last_credential_check_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
855 t.string "avatar"
856 t.string "confirmation_token"
6fff92e @randx Enable confirmable and reconfirmable modules for User
randx authored
857 t.datetime "confirmed_at"
858 t.datetime "confirmation_sent_at"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
859 t.string "unconfirmed_email"
860 t.boolean "hide_no_ssh_key", default: false
861 t.string "website_url", default: "", null: false
862 t.string "notification_email"
863 t.boolean "hide_no_password", default: false
864 t.boolean "password_automatically_set", default: false
865 t.string "location"
866 t.string "encrypted_otp_secret"
867 t.string "encrypted_otp_secret_iv"
868 t.string "encrypted_otp_secret_salt"
869 t.boolean "otp_required_for_login", default: false, null: false
0c113c8 @tsigo Make otp_backup_codes a text field
tsigo authored
870 t.text "otp_backup_codes"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
871 t.string "public_email", default: "", null: false
872 t.integer "dashboard", default: 0
873 t.integer "project_view", default: 0
259851c @tsigo Bump devise-two-factor to 2.0.0
tsigo authored
874 t.integer "consumed_timestep"
2367160 @YorickPeterse Make the metrics sampler interval configurable
YorickPeterse authored
875 t.integer "layout", default: 0
876 t.boolean "hide_project_limit", default: false
be41d84 Allow account unlock via email
Drew Blessing authored
877 t.string "unlock_token"
31fb2b7 @brodock Grace period support for TFA
brodock authored
878 t.datetime "otp_grace_period_started_at"
577f2fb @DouweM Save and use actual diff base commit for MR diff highlighting
DouweM authored
879 t.boolean "ldap_email", default: false, null: false
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
880 end
881
7060668 @randx Fixed db schema
randx authored
882 add_index "users", ["admin"], name: "index_users_on_admin", using: :btree
883 add_index "users", ["authentication_token"], name: "index_users_on_authentication_token", unique: true, using: :btree
884 add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true, using: :btree
3e97ac2 @randx Add index on order columns
randx authored
885 add_index "users", ["created_at", "id"], name: "index_users_on_created_at_and_id", using: :btree
cf43bf3 Add db index for active user display.
GitLab authored
886 add_index "users", ["current_sign_in_at"], name: "index_users_on_current_sign_in_at", using: :btree
7060668 @randx Fixed db schema
randx authored
887 add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
888 add_index "users", ["name"], name: "index_users_on_name", using: :btree
889 add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
890 add_index "users", ["username"], name: "index_users_on_username", using: :btree
891
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
892 create_table "users_star_projects", force: :cascade do |t|
714f720 @cirosantilli Add project stars.
cirosantilli authored
893 t.integer "project_id", null: false
894 t.integer "user_id", null: false
895 t.datetime "created_at"
896 t.datetime "updated_at"
897 end
898
899 add_index "users_star_projects", ["project_id"], name: "index_users_star_projects_on_project_id", using: :btree
900 add_index "users_star_projects", ["user_id", "project_id"], name: "index_users_star_projects_on_user_id_and_project_id", unique: true, using: :btree
901 add_index "users_star_projects", ["user_id"], name: "index_users_star_projects_on_user_id", using: :btree
902
40ff131 @vsizov Rails update to 4.2.4
vsizov authored
903 create_table "web_hooks", force: :cascade do |t|
e801135 @Bugagazavr Raise hook url limit
Bugagazavr authored
904 t.string "url", limit: 2000
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
905 t.integer "project_id"
cf890b2 @randx Add User#last_credential_check_at
randx authored
906 t.datetime "created_at"
907 t.datetime "updated_at"
e801135 @Bugagazavr Raise hook url limit
Bugagazavr authored
908 t.string "type", default: "ProjectHook"
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
909 t.integer "service_id"
e801135 @Bugagazavr Raise hook url limit
Bugagazavr authored
910 t.boolean "push_events", default: true, null: false
911 t.boolean "issues_events", default: false, null: false
912 t.boolean "merge_requests_events", default: false, null: false
913 t.boolean "tag_push_events", default: false
914 t.boolean "note_events", default: false, null: false
915 t.boolean "enable_ssl_verification", default: true
916 t.boolean "build_events", default: false, null: false
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
917 end
918
3e97ac2 @randx Add index on order columns
randx authored
919 add_index "web_hooks", ["created_at", "id"], name: "index_web_hooks_on_created_at_and_id", using: :btree
7060668 @randx Fixed db schema
randx authored
920 add_index "web_hooks", ["project_id"], name: "index_web_hooks_on_project_id", using: :btree
9787c37 @randx More db index
randx authored
921
1dab19d @Andrew8xx8 DB schema updated
Andrew8xx8 authored
922 end
Something went wrong with that request. Please try again.