Commit 3f9b1d62effb576213e43f6ef9f55587ad3d9a67
1 parent
4537623d
Exists in
master
and in
4 other branches
reset db schema
Showing
1 changed file
with
36 additions
and
32 deletions
Show diff stats
db/schema.rb
| ... | ... | @@ -55,8 +55,8 @@ ActiveRecord::Schema.define(:version => 20130804151314) do |
| 55 | 55 | t.integer "assignee_id" |
| 56 | 56 | t.integer "author_id" |
| 57 | 57 | t.integer "project_id" |
| 58 | - t.datetime "created_at" | |
| 59 | - t.datetime "updated_at" | |
| 58 | + t.datetime "created_at", :null => false | |
| 59 | + t.datetime "updated_at", :null => false | |
| 60 | 60 | t.integer "position", :default => 0 |
| 61 | 61 | t.string "branch_name" |
| 62 | 62 | t.text "description" |
| ... | ... | @@ -73,8 +73,8 @@ ActiveRecord::Schema.define(:version => 20130804151314) do |
| 73 | 73 | |
| 74 | 74 | create_table "keys", :force => true do |t| |
| 75 | 75 | t.integer "user_id" |
| 76 | - t.datetime "created_at" | |
| 77 | - t.datetime "updated_at" | |
| 76 | + t.datetime "created_at", :null => false | |
| 77 | + t.datetime "updated_at", :null => false | |
| 78 | 78 | t.text "key" |
| 79 | 79 | t.string "title" |
| 80 | 80 | t.string "type" |
| ... | ... | @@ -90,8 +90,8 @@ ActiveRecord::Schema.define(:version => 20130804151314) do |
| 90 | 90 | t.integer "author_id" |
| 91 | 91 | t.integer "assignee_id" |
| 92 | 92 | t.string "title" |
| 93 | - t.datetime "created_at" | |
| 94 | - t.datetime "updated_at" | |
| 93 | + t.datetime "created_at", :null => false | |
| 94 | + t.datetime "updated_at", :null => false | |
| 95 | 95 | t.text "st_commits", :limit => 2147483647 |
| 96 | 96 | t.text "st_diffs", :limit => 2147483647 |
| 97 | 97 | t.integer "milestone_id" |
| ... | ... | @@ -141,8 +141,8 @@ ActiveRecord::Schema.define(:version => 20130804151314) do |
| 141 | 141 | t.text "note" |
| 142 | 142 | t.string "noteable_type" |
| 143 | 143 | t.integer "author_id" |
| 144 | - t.datetime "created_at" | |
| 145 | - t.datetime "updated_at" | |
| 144 | + t.datetime "created_at", :null => false | |
| 145 | + t.datetime "updated_at", :null => false | |
| 146 | 146 | t.integer "project_id" |
| 147 | 147 | t.string "attachment" |
| 148 | 148 | t.string "line_code" |
| ... | ... | @@ -163,8 +163,8 @@ ActiveRecord::Schema.define(:version => 20130804151314) do |
| 163 | 163 | t.string "name" |
| 164 | 164 | t.string "path" |
| 165 | 165 | t.text "description" |
| 166 | - t.datetime "created_at" | |
| 167 | - t.datetime "updated_at" | |
| 166 | + t.datetime "created_at", :null => false | |
| 167 | + t.datetime "updated_at", :null => false | |
| 168 | 168 | t.integer "creator_id" |
| 169 | 169 | t.string "default_branch" |
| 170 | 170 | t.boolean "issues_enabled", :default => true, :null => false |
| ... | ... | @@ -213,8 +213,8 @@ ActiveRecord::Schema.define(:version => 20130804151314) do |
| 213 | 213 | t.text "content", :limit => 2147483647 |
| 214 | 214 | t.integer "author_id", :null => false |
| 215 | 215 | t.integer "project_id" |
| 216 | - t.datetime "created_at" | |
| 217 | - t.datetime "updated_at" | |
| 216 | + t.datetime "created_at", :null => false | |
| 217 | + t.datetime "updated_at", :null => false | |
| 218 | 218 | t.string "file_name" |
| 219 | 219 | t.datetime "expires_at" |
| 220 | 220 | t.boolean "private", :default => true, :null => false |
| ... | ... | @@ -236,6 +236,9 @@ ActiveRecord::Schema.define(:version => 20130804151314) do |
| 236 | 236 | t.datetime "created_at" |
| 237 | 237 | end |
| 238 | 238 | |
| 239 | + add_index "taggings", ["tag_id"], :name => "index_taggings_on_tag_id" | |
| 240 | + add_index "taggings", ["taggable_id", "taggable_type", "context"], :name => "index_taggings_on_taggable_id_and_taggable_type_and_context" | |
| 241 | + | |
| 239 | 242 | create_table "tags", :force => true do |t| |
| 240 | 243 | t.string "name" |
| 241 | 244 | end |
| ... | ... | @@ -267,37 +270,37 @@ ActiveRecord::Schema.define(:version => 20130804151314) do |
| 267 | 270 | end |
| 268 | 271 | |
| 269 | 272 | create_table "users", :force => true do |t| |
| 270 | - t.string "email", :default => "", :null => false | |
| 271 | - t.string "encrypted_password", :limit => 128, :default => "", :null => false | |
| 273 | + t.string "email", :default => "", :null => false | |
| 274 | + t.string "encrypted_password", :default => "", :null => false | |
| 272 | 275 | t.string "reset_password_token" |
| 273 | 276 | t.datetime "reset_password_sent_at" |
| 274 | 277 | t.datetime "remember_created_at" |
| 275 | - t.integer "sign_in_count", :default => 0 | |
| 278 | + t.integer "sign_in_count", :default => 0 | |
| 276 | 279 | t.datetime "current_sign_in_at" |
| 277 | 280 | t.datetime "last_sign_in_at" |
| 278 | 281 | t.string "current_sign_in_ip" |
| 279 | 282 | t.string "last_sign_in_ip" |
| 280 | - t.datetime "created_at" | |
| 281 | - t.datetime "updated_at" | |
| 283 | + t.datetime "created_at", :null => false | |
| 284 | + t.datetime "updated_at", :null => false | |
| 282 | 285 | t.string "name" |
| 283 | - t.boolean "admin", :default => false, :null => false | |
| 284 | - t.integer "projects_limit", :default => 10 | |
| 285 | - t.string "skype", :default => "", :null => false | |
| 286 | - t.string "linkedin", :default => "", :null => false | |
| 287 | - t.string "twitter", :default => "", :null => false | |
| 286 | + t.boolean "admin", :default => false, :null => false | |
| 287 | + t.integer "projects_limit", :default => 10 | |
| 288 | + t.string "skype", :default => "", :null => false | |
| 289 | + t.string "linkedin", :default => "", :null => false | |
| 290 | + t.string "twitter", :default => "", :null => false | |
| 288 | 291 | t.string "authentication_token" |
| 289 | - t.integer "theme_id", :default => 1, :null => false | |
| 292 | + t.integer "theme_id", :default => 1, :null => false | |
| 290 | 293 | t.string "bio" |
| 291 | - t.integer "failed_attempts", :default => 0 | |
| 294 | + t.integer "failed_attempts", :default => 0 | |
| 292 | 295 | t.datetime "locked_at" |
| 293 | 296 | t.string "extern_uid" |
| 294 | 297 | t.string "provider" |
| 295 | 298 | t.string "username" |
| 296 | - t.boolean "can_create_group", :default => true, :null => false | |
| 297 | - t.boolean "can_create_team", :default => true, :null => false | |
| 299 | + t.boolean "can_create_group", :default => true, :null => false | |
| 300 | + t.boolean "can_create_team", :default => true, :null => false | |
| 298 | 301 | t.string "state" |
| 299 | - t.integer "color_scheme_id", :default => 1, :null => false | |
| 300 | - t.integer "notification_level", :default => 1, :null => false | |
| 302 | + t.integer "color_scheme_id", :default => 1, :null => false | |
| 303 | + t.integer "notification_level", :default => 1, :null => false | |
| 301 | 304 | t.datetime "password_expires_at" |
| 302 | 305 | t.integer "created_by_id" |
| 303 | 306 | end |
| ... | ... | @@ -305,6 +308,7 @@ ActiveRecord::Schema.define(:version => 20130804151314) do |
| 305 | 308 | add_index "users", ["admin"], :name => "index_users_on_admin" |
| 306 | 309 | add_index "users", ["authentication_token"], :name => "index_users_on_authentication_token", :unique => true |
| 307 | 310 | add_index "users", ["email"], :name => "index_users_on_email", :unique => true |
| 311 | + add_index "users", ["extern_uid", "provider"], :name => "index_users_on_extern_uid_and_provider", :unique => true | |
| 308 | 312 | add_index "users", ["name"], :name => "index_users_on_name" |
| 309 | 313 | add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true |
| 310 | 314 | add_index "users", ["username"], :name => "index_users_on_username" |
| ... | ... | @@ -323,8 +327,8 @@ ActiveRecord::Schema.define(:version => 20130804151314) do |
| 323 | 327 | create_table "users_projects", :force => true do |t| |
| 324 | 328 | t.integer "user_id", :null => false |
| 325 | 329 | t.integer "project_id", :null => false |
| 326 | - t.datetime "created_at" | |
| 327 | - t.datetime "updated_at" | |
| 330 | + t.datetime "created_at", :null => false | |
| 331 | + t.datetime "updated_at", :null => false | |
| 328 | 332 | t.integer "project_access", :default => 0, :null => false |
| 329 | 333 | t.integer "notification_level", :default => 3, :null => false |
| 330 | 334 | end |
| ... | ... | @@ -336,8 +340,8 @@ ActiveRecord::Schema.define(:version => 20130804151314) do |
| 336 | 340 | create_table "web_hooks", :force => true do |t| |
| 337 | 341 | t.string "url" |
| 338 | 342 | t.integer "project_id" |
| 339 | - t.datetime "created_at" | |
| 340 | - t.datetime "updated_at" | |
| 343 | + t.datetime "created_at", :null => false | |
| 344 | + t.datetime "updated_at", :null => false | |
| 341 | 345 | t.string "type", :default => "ProjectHook" |
| 342 | 346 | t.integer "service_id" |
| 343 | 347 | end | ... | ... |