Commit 7060668e098a9728b24016e7419f7abffa21a4e6
1 parent
b7fc0e81
Exists in
master
and in
4 other branches
Fixed db schema
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
181 additions
and
180 deletions
Show diff stats
db/schema.rb
| ... | ... | @@ -9,64 +9,64 @@ |
| 9 | 9 | # from scratch. The latter is a flawed and unsustainable approach (the more migrations |
| 10 | 10 | # you'll amass, the slower it'll run and the greater likelihood for issues). |
| 11 | 11 | # |
| 12 | -# It's strongly recommended to check this file into your version control system. | |
| 12 | +# It's strongly recommended that you check this file into your version control system. | |
| 13 | 13 | |
| 14 | -ActiveRecord::Schema.define(:version => 20131202192556) do | |
| 14 | +ActiveRecord::Schema.define(version: 20131214224427) do | |
| 15 | 15 | |
| 16 | - create_table "broadcast_messages", :force => true do |t| | |
| 17 | - t.text "message", :null => false | |
| 16 | + create_table "broadcast_messages", force: true do |t| | |
| 17 | + t.text "message", null: false | |
| 18 | 18 | t.datetime "starts_at" |
| 19 | 19 | t.datetime "ends_at" |
| 20 | 20 | t.integer "alert_type" |
| 21 | - t.datetime "created_at", :null => false | |
| 22 | - t.datetime "updated_at", :null => false | |
| 21 | + t.datetime "created_at", null: false | |
| 22 | + t.datetime "updated_at", null: false | |
| 23 | 23 | end |
| 24 | 24 | |
| 25 | - create_table "deploy_keys_projects", :force => true do |t| | |
| 26 | - t.integer "deploy_key_id", :null => false | |
| 27 | - t.integer "project_id", :null => false | |
| 28 | - t.datetime "created_at", :null => false | |
| 29 | - t.datetime "updated_at", :null => false | |
| 25 | + create_table "deploy_keys_projects", force: true do |t| | |
| 26 | + t.integer "deploy_key_id", null: false | |
| 27 | + t.integer "project_id", null: false | |
| 28 | + t.datetime "created_at", null: false | |
| 29 | + t.datetime "updated_at", null: false | |
| 30 | 30 | end |
| 31 | 31 | |
| 32 | - add_index "deploy_keys_projects", ["project_id"], :name => "index_deploy_keys_projects_on_project_id" | |
| 32 | + add_index "deploy_keys_projects", ["project_id"], name: "index_deploy_keys_projects_on_project_id", using: :btree | |
| 33 | 33 | |
| 34 | - create_table "events", :force => true do |t| | |
| 34 | + create_table "events", force: true do |t| | |
| 35 | 35 | t.string "target_type" |
| 36 | 36 | t.integer "target_id" |
| 37 | 37 | t.string "title" |
| 38 | 38 | t.text "data" |
| 39 | 39 | t.integer "project_id" |
| 40 | - t.datetime "created_at", :null => false | |
| 41 | - t.datetime "updated_at", :null => false | |
| 40 | + t.datetime "created_at", null: false | |
| 41 | + t.datetime "updated_at", null: false | |
| 42 | 42 | t.integer "action" |
| 43 | 43 | t.integer "author_id" |
| 44 | 44 | end |
| 45 | 45 | |
| 46 | - add_index "events", ["action"], :name => "index_events_on_action" | |
| 47 | - add_index "events", ["author_id"], :name => "index_events_on_author_id" | |
| 48 | - add_index "events", ["created_at"], :name => "index_events_on_created_at" | |
| 49 | - add_index "events", ["project_id"], :name => "index_events_on_project_id" | |
| 50 | - add_index "events", ["target_id"], :name => "index_events_on_target_id" | |
| 51 | - add_index "events", ["target_type"], :name => "index_events_on_target_type" | |
| 52 | - | |
| 53 | - create_table "forked_project_links", :force => true do |t| | |
| 54 | - t.integer "forked_to_project_id", :null => false | |
| 55 | - t.integer "forked_from_project_id", :null => false | |
| 56 | - t.datetime "created_at", :null => false | |
| 57 | - t.datetime "updated_at", :null => false | |
| 46 | + add_index "events", ["action"], name: "index_events_on_action", using: :btree | |
| 47 | + add_index "events", ["author_id"], name: "index_events_on_author_id", using: :btree | |
| 48 | + add_index "events", ["created_at"], name: "index_events_on_created_at", using: :btree | |
| 49 | + add_index "events", ["project_id"], name: "index_events_on_project_id", using: :btree | |
| 50 | + add_index "events", ["target_id"], name: "index_events_on_target_id", using: :btree | |
| 51 | + add_index "events", ["target_type"], name: "index_events_on_target_type", using: :btree | |
| 52 | + | |
| 53 | + create_table "forked_project_links", force: true do |t| | |
| 54 | + t.integer "forked_to_project_id", null: false | |
| 55 | + t.integer "forked_from_project_id", null: false | |
| 56 | + t.datetime "created_at", null: false | |
| 57 | + t.datetime "updated_at", null: false | |
| 58 | 58 | end |
| 59 | 59 | |
| 60 | - add_index "forked_project_links", ["forked_to_project_id"], :name => "index_forked_project_links_on_forked_to_project_id", :unique => true | |
| 60 | + add_index "forked_project_links", ["forked_to_project_id"], name: "index_forked_project_links_on_forked_to_project_id", unique: true, using: :btree | |
| 61 | 61 | |
| 62 | - create_table "issues", :force => true do |t| | |
| 62 | + create_table "issues", force: true do |t| | |
| 63 | 63 | t.string "title" |
| 64 | 64 | t.integer "assignee_id" |
| 65 | 65 | t.integer "author_id" |
| 66 | 66 | t.integer "project_id" |
| 67 | - t.datetime "created_at", :null => false | |
| 68 | - t.datetime "updated_at", :null => false | |
| 69 | - t.integer "position", :default => 0 | |
| 67 | + t.datetime "created_at", null: false | |
| 68 | + t.datetime "updated_at", null: false | |
| 69 | + t.integer "position", default: 0 | |
| 70 | 70 | t.string "branch_name" |
| 71 | 71 | t.text "description" |
| 72 | 72 | t.integer "milestone_id" |
| ... | ... | @@ -74,173 +74,173 @@ ActiveRecord::Schema.define(:version => 20131202192556) do |
| 74 | 74 | t.integer "iid" |
| 75 | 75 | end |
| 76 | 76 | |
| 77 | - add_index "issues", ["assignee_id"], :name => "index_issues_on_assignee_id" | |
| 78 | - add_index "issues", ["author_id"], :name => "index_issues_on_author_id" | |
| 79 | - add_index "issues", ["created_at"], :name => "index_issues_on_created_at" | |
| 80 | - add_index "issues", ["milestone_id"], :name => "index_issues_on_milestone_id" | |
| 81 | - add_index "issues", ["project_id"], :name => "index_issues_on_project_id" | |
| 82 | - add_index "issues", ["title"], :name => "index_issues_on_title" | |
| 77 | + add_index "issues", ["assignee_id"], name: "index_issues_on_assignee_id", using: :btree | |
| 78 | + add_index "issues", ["author_id"], name: "index_issues_on_author_id", using: :btree | |
| 79 | + add_index "issues", ["created_at"], name: "index_issues_on_created_at", using: :btree | |
| 80 | + add_index "issues", ["milestone_id"], name: "index_issues_on_milestone_id", using: :btree | |
| 81 | + add_index "issues", ["project_id"], name: "index_issues_on_project_id", using: :btree | |
| 82 | + add_index "issues", ["title"], name: "index_issues_on_title", using: :btree | |
| 83 | 83 | |
| 84 | - create_table "keys", :force => true do |t| | |
| 84 | + create_table "keys", force: true do |t| | |
| 85 | 85 | t.integer "user_id" |
| 86 | - t.datetime "created_at", :null => false | |
| 87 | - t.datetime "updated_at", :null => false | |
| 86 | + t.datetime "created_at", null: false | |
| 87 | + t.datetime "updated_at", null: false | |
| 88 | 88 | t.text "key" |
| 89 | 89 | t.string "title" |
| 90 | 90 | t.string "type" |
| 91 | 91 | t.string "fingerprint" |
| 92 | 92 | end |
| 93 | 93 | |
| 94 | - add_index "keys", ["user_id"], :name => "index_keys_on_user_id" | |
| 94 | + add_index "keys", ["user_id"], name: "index_keys_on_user_id", using: :btree | |
| 95 | 95 | |
| 96 | - create_table "merge_requests", :force => true do |t| | |
| 97 | - t.string "target_branch", :null => false | |
| 98 | - t.string "source_branch", :null => false | |
| 99 | - t.integer "source_project_id", :null => false | |
| 96 | + create_table "merge_requests", force: true do |t| | |
| 97 | + t.string "target_branch", null: false | |
| 98 | + t.string "source_branch", null: false | |
| 99 | + t.integer "source_project_id", null: false | |
| 100 | 100 | t.integer "author_id" |
| 101 | 101 | t.integer "assignee_id" |
| 102 | 102 | t.string "title" |
| 103 | - t.datetime "created_at", :null => false | |
| 104 | - t.datetime "updated_at", :null => false | |
| 105 | - t.text "st_commits", :limit => 2147483647 | |
| 106 | - t.text "st_diffs", :limit => 2147483647 | |
| 103 | + t.datetime "created_at", null: false | |
| 104 | + t.datetime "updated_at", null: false | |
| 105 | + t.text "st_commits", limit: 2147483647 | |
| 106 | + t.text "st_diffs", limit: 2147483647 | |
| 107 | 107 | t.integer "milestone_id" |
| 108 | 108 | t.string "state" |
| 109 | 109 | t.string "merge_status" |
| 110 | - t.integer "target_project_id", :null => false | |
| 110 | + t.integer "target_project_id", null: false | |
| 111 | 111 | t.integer "iid" |
| 112 | 112 | t.text "description" |
| 113 | 113 | end |
| 114 | 114 | |
| 115 | - add_index "merge_requests", ["assignee_id"], :name => "index_merge_requests_on_assignee_id" | |
| 116 | - add_index "merge_requests", ["author_id"], :name => "index_merge_requests_on_author_id" | |
| 117 | - add_index "merge_requests", ["created_at"], :name => "index_merge_requests_on_created_at" | |
| 118 | - add_index "merge_requests", ["milestone_id"], :name => "index_merge_requests_on_milestone_id" | |
| 119 | - add_index "merge_requests", ["source_branch"], :name => "index_merge_requests_on_source_branch" | |
| 120 | - add_index "merge_requests", ["source_project_id"], :name => "index_merge_requests_on_project_id" | |
| 121 | - add_index "merge_requests", ["target_branch"], :name => "index_merge_requests_on_target_branch" | |
| 122 | - add_index "merge_requests", ["title"], :name => "index_merge_requests_on_title" | |
| 123 | - | |
| 124 | - create_table "milestones", :force => true do |t| | |
| 125 | - t.string "title", :null => false | |
| 126 | - t.integer "project_id", :null => false | |
| 115 | + add_index "merge_requests", ["assignee_id"], name: "index_merge_requests_on_assignee_id", using: :btree | |
| 116 | + add_index "merge_requests", ["author_id"], name: "index_merge_requests_on_author_id", using: :btree | |
| 117 | + add_index "merge_requests", ["created_at"], name: "index_merge_requests_on_created_at", using: :btree | |
| 118 | + add_index "merge_requests", ["milestone_id"], name: "index_merge_requests_on_milestone_id", using: :btree | |
| 119 | + add_index "merge_requests", ["source_branch"], name: "index_merge_requests_on_source_branch", using: :btree | |
| 120 | + add_index "merge_requests", ["source_project_id"], name: "index_merge_requests_on_project_id", using: :btree | |
| 121 | + add_index "merge_requests", ["target_branch"], name: "index_merge_requests_on_target_branch", using: :btree | |
| 122 | + add_index "merge_requests", ["title"], name: "index_merge_requests_on_title", using: :btree | |
| 123 | + | |
| 124 | + create_table "milestones", force: true do |t| | |
| 125 | + t.string "title", null: false | |
| 126 | + t.integer "project_id", null: false | |
| 127 | 127 | t.text "description" |
| 128 | 128 | t.date "due_date" |
| 129 | - t.datetime "created_at", :null => false | |
| 130 | - t.datetime "updated_at", :null => false | |
| 129 | + t.datetime "created_at", null: false | |
| 130 | + t.datetime "updated_at", null: false | |
| 131 | 131 | t.string "state" |
| 132 | 132 | t.integer "iid" |
| 133 | 133 | end |
| 134 | 134 | |
| 135 | - add_index "milestones", ["due_date"], :name => "index_milestones_on_due_date" | |
| 136 | - add_index "milestones", ["project_id"], :name => "index_milestones_on_project_id" | |
| 135 | + add_index "milestones", ["due_date"], name: "index_milestones_on_due_date", using: :btree | |
| 136 | + add_index "milestones", ["project_id"], name: "index_milestones_on_project_id", using: :btree | |
| 137 | 137 | |
| 138 | - create_table "namespaces", :force => true do |t| | |
| 139 | - t.string "name", :null => false | |
| 140 | - t.string "path", :null => false | |
| 138 | + create_table "namespaces", force: true do |t| | |
| 139 | + t.string "name", null: false | |
| 140 | + t.string "path", null: false | |
| 141 | 141 | t.integer "owner_id" |
| 142 | - t.datetime "created_at", :null => false | |
| 143 | - t.datetime "updated_at", :null => false | |
| 142 | + t.datetime "created_at", null: false | |
| 143 | + t.datetime "updated_at", null: false | |
| 144 | 144 | t.string "type" |
| 145 | - t.string "description", :default => "", :null => false | |
| 145 | + t.string "description", default: "", null: false | |
| 146 | 146 | end |
| 147 | 147 | |
| 148 | - add_index "namespaces", ["name"], :name => "index_namespaces_on_name" | |
| 149 | - add_index "namespaces", ["owner_id"], :name => "index_namespaces_on_owner_id" | |
| 150 | - add_index "namespaces", ["path"], :name => "index_namespaces_on_path" | |
| 151 | - add_index "namespaces", ["type"], :name => "index_namespaces_on_type" | |
| 148 | + add_index "namespaces", ["name"], name: "index_namespaces_on_name", using: :btree | |
| 149 | + add_index "namespaces", ["owner_id"], name: "index_namespaces_on_owner_id", using: :btree | |
| 150 | + add_index "namespaces", ["path"], name: "index_namespaces_on_path", using: :btree | |
| 151 | + add_index "namespaces", ["type"], name: "index_namespaces_on_type", using: :btree | |
| 152 | 152 | |
| 153 | - create_table "notes", :force => true do |t| | |
| 153 | + create_table "notes", force: true do |t| | |
| 154 | 154 | t.text "note" |
| 155 | 155 | t.string "noteable_type" |
| 156 | 156 | t.integer "author_id" |
| 157 | - t.datetime "created_at", :null => false | |
| 158 | - t.datetime "updated_at", :null => false | |
| 157 | + t.datetime "created_at", null: false | |
| 158 | + t.datetime "updated_at", null: false | |
| 159 | 159 | t.integer "project_id" |
| 160 | 160 | t.string "attachment" |
| 161 | 161 | t.string "line_code" |
| 162 | 162 | t.string "commit_id" |
| 163 | 163 | t.integer "noteable_id" |
| 164 | 164 | t.text "st_diff" |
| 165 | - t.boolean "system", :default => false, :null => false | |
| 165 | + t.boolean "system", default: false, null: false | |
| 166 | 166 | end |
| 167 | 167 | |
| 168 | - add_index "notes", ["author_id"], :name => "index_notes_on_author_id" | |
| 169 | - add_index "notes", ["commit_id"], :name => "index_notes_on_commit_id" | |
| 170 | - add_index "notes", ["created_at"], :name => "index_notes_on_created_at" | |
| 171 | - add_index "notes", ["noteable_id", "noteable_type"], :name => "index_notes_on_noteable_id_and_noteable_type" | |
| 172 | - add_index "notes", ["noteable_type"], :name => "index_notes_on_noteable_type" | |
| 173 | - add_index "notes", ["project_id", "noteable_type"], :name => "index_notes_on_project_id_and_noteable_type" | |
| 174 | - add_index "notes", ["project_id"], :name => "index_notes_on_project_id" | |
| 168 | + add_index "notes", ["author_id"], name: "index_notes_on_author_id", using: :btree | |
| 169 | + add_index "notes", ["commit_id"], name: "index_notes_on_commit_id", using: :btree | |
| 170 | + add_index "notes", ["created_at"], name: "index_notes_on_created_at", using: :btree | |
| 171 | + add_index "notes", ["noteable_id", "noteable_type"], name: "index_notes_on_noteable_id_and_noteable_type", using: :btree | |
| 172 | + add_index "notes", ["noteable_type"], name: "index_notes_on_noteable_type", using: :btree | |
| 173 | + add_index "notes", ["project_id", "noteable_type"], name: "index_notes_on_project_id_and_noteable_type", using: :btree | |
| 174 | + add_index "notes", ["project_id"], name: "index_notes_on_project_id", using: :btree | |
| 175 | 175 | |
| 176 | - create_table "projects", :force => true do |t| | |
| 176 | + create_table "projects", force: true do |t| | |
| 177 | 177 | t.string "name" |
| 178 | 178 | t.string "path" |
| 179 | 179 | t.text "description" |
| 180 | - t.datetime "created_at", :null => false | |
| 181 | - t.datetime "updated_at", :null => false | |
| 180 | + t.datetime "created_at", null: false | |
| 181 | + t.datetime "updated_at", null: false | |
| 182 | 182 | t.integer "creator_id" |
| 183 | - t.boolean "issues_enabled", :default => true, :null => false | |
| 184 | - t.boolean "wall_enabled", :default => true, :null => false | |
| 185 | - t.boolean "merge_requests_enabled", :default => true, :null => false | |
| 186 | - t.boolean "wiki_enabled", :default => true, :null => false | |
| 183 | + t.boolean "issues_enabled", default: true, null: false | |
| 184 | + t.boolean "wall_enabled", default: true, null: false | |
| 185 | + t.boolean "merge_requests_enabled", default: true, null: false | |
| 186 | + t.boolean "wiki_enabled", default: true, null: false | |
| 187 | 187 | t.integer "namespace_id" |
| 188 | - t.string "issues_tracker", :default => "gitlab", :null => false | |
| 188 | + t.string "issues_tracker", default: "gitlab", null: false | |
| 189 | 189 | t.string "issues_tracker_id" |
| 190 | - t.boolean "snippets_enabled", :default => true, :null => false | |
| 190 | + t.boolean "snippets_enabled", default: true, null: false | |
| 191 | 191 | t.datetime "last_activity_at" |
| 192 | - t.boolean "imported", :default => false, :null => false | |
| 192 | + t.boolean "imported", default: false, null: false | |
| 193 | 193 | t.string "import_url" |
| 194 | - t.integer "visibility_level", :default => 0, :null => false | |
| 194 | + t.integer "visibility_level", default: 0, null: false | |
| 195 | 195 | end |
| 196 | 196 | |
| 197 | - add_index "projects", ["creator_id"], :name => "index_projects_on_owner_id" | |
| 198 | - add_index "projects", ["last_activity_at"], :name => "index_projects_on_last_activity_at" | |
| 199 | - add_index "projects", ["namespace_id"], :name => "index_projects_on_namespace_id" | |
| 197 | + add_index "projects", ["creator_id"], name: "index_projects_on_owner_id", using: :btree | |
| 198 | + add_index "projects", ["last_activity_at"], name: "index_projects_on_last_activity_at", using: :btree | |
| 199 | + add_index "projects", ["namespace_id"], name: "index_projects_on_namespace_id", using: :btree | |
| 200 | 200 | |
| 201 | - create_table "protected_branches", :force => true do |t| | |
| 202 | - t.integer "project_id", :null => false | |
| 203 | - t.string "name", :null => false | |
| 204 | - t.datetime "created_at", :null => false | |
| 205 | - t.datetime "updated_at", :null => false | |
| 201 | + create_table "protected_branches", force: true do |t| | |
| 202 | + t.integer "project_id", null: false | |
| 203 | + t.string "name", null: false | |
| 204 | + t.datetime "created_at", null: false | |
| 205 | + t.datetime "updated_at", null: false | |
| 206 | 206 | end |
| 207 | 207 | |
| 208 | - add_index "protected_branches", ["project_id"], :name => "index_protected_branches_on_project_id" | |
| 208 | + add_index "protected_branches", ["project_id"], name: "index_protected_branches_on_project_id", using: :btree | |
| 209 | 209 | |
| 210 | - create_table "services", :force => true do |t| | |
| 210 | + create_table "services", force: true do |t| | |
| 211 | 211 | t.string "type" |
| 212 | 212 | t.string "title" |
| 213 | 213 | t.string "token" |
| 214 | - t.integer "project_id", :null => false | |
| 215 | - t.datetime "created_at", :null => false | |
| 216 | - t.datetime "updated_at", :null => false | |
| 217 | - t.boolean "active", :default => false, :null => false | |
| 214 | + t.integer "project_id", null: false | |
| 215 | + t.datetime "created_at", null: false | |
| 216 | + t.datetime "updated_at", null: false | |
| 217 | + t.boolean "active", default: false, null: false | |
| 218 | 218 | t.string "project_url" |
| 219 | 219 | t.string "subdomain" |
| 220 | 220 | t.string "room" |
| 221 | 221 | end |
| 222 | 222 | |
| 223 | - add_index "services", ["project_id"], :name => "index_services_on_project_id" | |
| 223 | + add_index "services", ["project_id"], name: "index_services_on_project_id", using: :btree | |
| 224 | 224 | |
| 225 | - create_table "snippets", :force => true do |t| | |
| 225 | + create_table "snippets", force: true do |t| | |
| 226 | 226 | t.string "title" |
| 227 | - t.text "content", :limit => 2147483647 | |
| 228 | - t.integer "author_id", :null => false | |
| 227 | + t.text "content", limit: 2147483647 | |
| 228 | + t.integer "author_id", null: false | |
| 229 | 229 | t.integer "project_id" |
| 230 | - t.datetime "created_at", :null => false | |
| 231 | - t.datetime "updated_at", :null => false | |
| 230 | + t.datetime "created_at", null: false | |
| 231 | + t.datetime "updated_at", null: false | |
| 232 | 232 | t.string "file_name" |
| 233 | 233 | t.datetime "expires_at" |
| 234 | - t.boolean "private", :default => true, :null => false | |
| 234 | + t.boolean "private", default: true, null: false | |
| 235 | 235 | t.string "type" |
| 236 | 236 | end |
| 237 | 237 | |
| 238 | - add_index "snippets", ["author_id"], :name => "index_snippets_on_author_id" | |
| 239 | - add_index "snippets", ["created_at"], :name => "index_snippets_on_created_at" | |
| 240 | - add_index "snippets", ["expires_at"], :name => "index_snippets_on_expires_at" | |
| 241 | - add_index "snippets", ["project_id"], :name => "index_snippets_on_project_id" | |
| 238 | + add_index "snippets", ["author_id"], name: "index_snippets_on_author_id", using: :btree | |
| 239 | + add_index "snippets", ["created_at"], name: "index_snippets_on_created_at", using: :btree | |
| 240 | + add_index "snippets", ["expires_at"], name: "index_snippets_on_expires_at", using: :btree | |
| 241 | + add_index "snippets", ["project_id"], name: "index_snippets_on_project_id", using: :btree | |
| 242 | 242 | |
| 243 | - create_table "taggings", :force => true do |t| | |
| 243 | + create_table "taggings", force: true do |t| | |
| 244 | 244 | t.integer "tag_id" |
| 245 | 245 | t.integer "taggable_id" |
| 246 | 246 | t.string "taggable_type" |
| ... | ... | @@ -250,45 +250,45 @@ ActiveRecord::Schema.define(:version => 20131202192556) do |
| 250 | 250 | t.datetime "created_at" |
| 251 | 251 | end |
| 252 | 252 | |
| 253 | - add_index "taggings", ["tag_id"], :name => "index_taggings_on_tag_id" | |
| 254 | - add_index "taggings", ["taggable_id", "taggable_type", "context"], :name => "index_taggings_on_taggable_id_and_taggable_type_and_context" | |
| 253 | + add_index "taggings", ["tag_id"], name: "index_taggings_on_tag_id", using: :btree | |
| 254 | + add_index "taggings", ["taggable_id", "taggable_type", "context"], name: "index_taggings_on_taggable_id_and_taggable_type_and_context", using: :btree | |
| 255 | 255 | |
| 256 | - create_table "tags", :force => true do |t| | |
| 256 | + create_table "tags", force: true do |t| | |
| 257 | 257 | t.string "name" |
| 258 | 258 | end |
| 259 | 259 | |
| 260 | - create_table "users", :force => true do |t| | |
| 261 | - t.string "email", :default => "", :null => false | |
| 262 | - t.string "encrypted_password", :default => "", :null => false | |
| 260 | + create_table "users", force: true do |t| | |
| 261 | + t.string "email", default: "", null: false | |
| 262 | + t.string "encrypted_password", default: "", null: false | |
| 263 | 263 | t.string "reset_password_token" |
| 264 | 264 | t.datetime "reset_password_sent_at" |
| 265 | 265 | t.datetime "remember_created_at" |
| 266 | - t.integer "sign_in_count", :default => 0 | |
| 266 | + t.integer "sign_in_count", default: 0 | |
| 267 | 267 | t.datetime "current_sign_in_at" |
| 268 | 268 | t.datetime "last_sign_in_at" |
| 269 | 269 | t.string "current_sign_in_ip" |
| 270 | 270 | t.string "last_sign_in_ip" |
| 271 | - t.datetime "created_at", :null => false | |
| 272 | - t.datetime "updated_at", :null => false | |
| 271 | + t.datetime "created_at", null: false | |
| 272 | + t.datetime "updated_at", null: false | |
| 273 | 273 | t.string "name" |
| 274 | - t.boolean "admin", :default => false, :null => false | |
| 275 | - t.integer "projects_limit", :default => 10 | |
| 276 | - t.string "skype", :default => "", :null => false | |
| 277 | - t.string "linkedin", :default => "", :null => false | |
| 278 | - t.string "twitter", :default => "", :null => false | |
| 274 | + t.boolean "admin", default: false, null: false | |
| 275 | + t.integer "projects_limit", default: 10 | |
| 276 | + t.string "skype", default: "", null: false | |
| 277 | + t.string "linkedin", default: "", null: false | |
| 278 | + t.string "twitter", default: "", null: false | |
| 279 | 279 | t.string "authentication_token" |
| 280 | - t.integer "theme_id", :default => 1, :null => false | |
| 280 | + t.integer "theme_id", default: 1, null: false | |
| 281 | 281 | t.string "bio" |
| 282 | - t.integer "failed_attempts", :default => 0 | |
| 282 | + t.integer "failed_attempts", default: 0 | |
| 283 | 283 | t.datetime "locked_at" |
| 284 | 284 | t.string "extern_uid" |
| 285 | 285 | t.string "provider" |
| 286 | 286 | t.string "username" |
| 287 | - t.boolean "can_create_group", :default => true, :null => false | |
| 288 | - t.boolean "can_create_team", :default => true, :null => false | |
| 287 | + t.boolean "can_create_group", default: true, null: false | |
| 288 | + t.boolean "can_create_team", default: true, null: false | |
| 289 | 289 | t.string "state" |
| 290 | - t.integer "color_scheme_id", :default => 1, :null => false | |
| 291 | - t.integer "notification_level", :default => 1, :null => false | |
| 290 | + t.integer "color_scheme_id", default: 1, null: false | |
| 291 | + t.integer "notification_level", default: 1, null: false | |
| 292 | 292 | t.datetime "password_expires_at" |
| 293 | 293 | t.integer "created_by_id" |
| 294 | 294 | t.string "avatar" |
| ... | ... | @@ -296,53 +296,54 @@ ActiveRecord::Schema.define(:version => 20131202192556) do |
| 296 | 296 | t.datetime "confirmed_at" |
| 297 | 297 | t.datetime "confirmation_sent_at" |
| 298 | 298 | t.string "unconfirmed_email" |
| 299 | + t.boolean "hide_no_ssh_key", default: false | |
| 299 | 300 | end |
| 300 | 301 | |
| 301 | - add_index "users", ["admin"], :name => "index_users_on_admin" | |
| 302 | - add_index "users", ["authentication_token"], :name => "index_users_on_authentication_token", :unique => true | |
| 303 | - add_index "users", ["confirmation_token"], :name => "index_users_on_confirmation_token", :unique => true | |
| 304 | - add_index "users", ["email"], :name => "index_users_on_email", :unique => true | |
| 305 | - add_index "users", ["extern_uid", "provider"], :name => "index_users_on_extern_uid_and_provider", :unique => true | |
| 306 | - add_index "users", ["name"], :name => "index_users_on_name" | |
| 307 | - add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true | |
| 308 | - add_index "users", ["username"], :name => "index_users_on_username" | |
| 309 | - | |
| 310 | - create_table "users_groups", :force => true do |t| | |
| 311 | - t.integer "group_access", :null => false | |
| 312 | - t.integer "group_id", :null => false | |
| 313 | - t.integer "user_id", :null => false | |
| 314 | - t.datetime "created_at", :null => false | |
| 315 | - t.datetime "updated_at", :null => false | |
| 316 | - t.integer "notification_level", :default => 3, :null => false | |
| 302 | + add_index "users", ["admin"], name: "index_users_on_admin", using: :btree | |
| 303 | + add_index "users", ["authentication_token"], name: "index_users_on_authentication_token", unique: true, using: :btree | |
| 304 | + add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true, using: :btree | |
| 305 | + add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree | |
| 306 | + add_index "users", ["extern_uid", "provider"], name: "index_users_on_extern_uid_and_provider", unique: true, using: :btree | |
| 307 | + add_index "users", ["name"], name: "index_users_on_name", using: :btree | |
| 308 | + add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree | |
| 309 | + add_index "users", ["username"], name: "index_users_on_username", using: :btree | |
| 310 | + | |
| 311 | + create_table "users_groups", force: true do |t| | |
| 312 | + t.integer "group_access", null: false | |
| 313 | + t.integer "group_id", null: false | |
| 314 | + t.integer "user_id", null: false | |
| 315 | + t.datetime "created_at", null: false | |
| 316 | + t.datetime "updated_at", null: false | |
| 317 | + t.integer "notification_level", default: 3, null: false | |
| 317 | 318 | end |
| 318 | 319 | |
| 319 | - add_index "users_groups", ["user_id"], :name => "index_users_groups_on_user_id" | |
| 320 | + add_index "users_groups", ["user_id"], name: "index_users_groups_on_user_id", using: :btree | |
| 320 | 321 | |
| 321 | - create_table "users_projects", :force => true do |t| | |
| 322 | - t.integer "user_id", :null => false | |
| 323 | - t.integer "project_id", :null => false | |
| 324 | - t.datetime "created_at", :null => false | |
| 325 | - t.datetime "updated_at", :null => false | |
| 326 | - t.integer "project_access", :default => 0, :null => false | |
| 327 | - t.integer "notification_level", :default => 3, :null => false | |
| 322 | + create_table "users_projects", force: true do |t| | |
| 323 | + t.integer "user_id", null: false | |
| 324 | + t.integer "project_id", null: false | |
| 325 | + t.datetime "created_at", null: false | |
| 326 | + t.datetime "updated_at", null: false | |
| 327 | + t.integer "project_access", default: 0, null: false | |
| 328 | + t.integer "notification_level", default: 3, null: false | |
| 328 | 329 | end |
| 329 | 330 | |
| 330 | - add_index "users_projects", ["project_access"], :name => "index_users_projects_on_project_access" | |
| 331 | - add_index "users_projects", ["project_id"], :name => "index_users_projects_on_project_id" | |
| 332 | - add_index "users_projects", ["user_id"], :name => "index_users_projects_on_user_id" | |
| 331 | + add_index "users_projects", ["project_access"], name: "index_users_projects_on_project_access", using: :btree | |
| 332 | + add_index "users_projects", ["project_id"], name: "index_users_projects_on_project_id", using: :btree | |
| 333 | + add_index "users_projects", ["user_id"], name: "index_users_projects_on_user_id", using: :btree | |
| 333 | 334 | |
| 334 | - create_table "web_hooks", :force => true do |t| | |
| 335 | + create_table "web_hooks", force: true do |t| | |
| 335 | 336 | t.string "url" |
| 336 | 337 | t.integer "project_id" |
| 337 | - t.datetime "created_at", :null => false | |
| 338 | - t.datetime "updated_at", :null => false | |
| 339 | - t.string "type", :default => "ProjectHook" | |
| 338 | + t.datetime "created_at", null: false | |
| 339 | + t.datetime "updated_at", null: false | |
| 340 | + t.string "type", default: "ProjectHook" | |
| 340 | 341 | t.integer "service_id" |
| 341 | - t.boolean "push_events", :default => true, :null => false | |
| 342 | - t.boolean "issues_events", :default => false, :null => false | |
| 343 | - t.boolean "merge_requests_events", :default => false, :null => false | |
| 342 | + t.boolean "push_events", default: true, null: false | |
| 343 | + t.boolean "issues_events", default: false, null: false | |
| 344 | + t.boolean "merge_requests_events", default: false, null: false | |
| 344 | 345 | end |
| 345 | 346 | |
| 346 | - add_index "web_hooks", ["project_id"], :name => "index_web_hooks_on_project_id" | |
| 347 | + add_index "web_hooks", ["project_id"], name: "index_web_hooks_on_project_id", using: :btree | |
| 347 | 348 | |
| 348 | 349 | end | ... | ... |