Commit cf890b227a277086dd1b5cfee356027f1a77a424
1 parent
e57e1e04
Exists in
spb-stable
and in
3 other branches
Add User#last_credential_check_at
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
2 changed files
with
40 additions
and
38 deletions
Show diff stats
db/migrate/20130809124851_add_permission_check_to_user.rb
0 → 100644
db/schema.rb
| ... | ... | @@ -76,8 +76,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do |
| 76 | 76 | t.integer "assignee_id" |
| 77 | 77 | t.integer "author_id" |
| 78 | 78 | t.integer "project_id" |
| 79 | - t.datetime "created_at", null: false | |
| 80 | - t.datetime "updated_at", null: false | |
| 79 | + t.datetime "created_at" | |
| 80 | + t.datetime "updated_at" | |
| 81 | 81 | t.integer "position", default: 0 |
| 82 | 82 | t.string "branch_name" |
| 83 | 83 | t.text "description" |
| ... | ... | @@ -95,8 +95,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do |
| 95 | 95 | |
| 96 | 96 | create_table "keys", force: true do |t| |
| 97 | 97 | t.integer "user_id" |
| 98 | - t.datetime "created_at", null: false | |
| 99 | - t.datetime "updated_at", null: false | |
| 98 | + t.datetime "created_at" | |
| 99 | + t.datetime "updated_at" | |
| 100 | 100 | t.text "key" |
| 101 | 101 | t.string "title" |
| 102 | 102 | t.string "type" |
| ... | ... | @@ -123,8 +123,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do |
| 123 | 123 | t.integer "author_id" |
| 124 | 124 | t.integer "assignee_id" |
| 125 | 125 | t.string "title" |
| 126 | - t.datetime "created_at", null: false | |
| 127 | - t.datetime "updated_at", null: false | |
| 126 | + t.datetime "created_at" | |
| 127 | + t.datetime "updated_at" | |
| 128 | 128 | t.integer "milestone_id" |
| 129 | 129 | t.string "state" |
| 130 | 130 | t.string "merge_status" |
| ... | ... | @@ -176,8 +176,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do |
| 176 | 176 | t.text "note" |
| 177 | 177 | t.string "noteable_type" |
| 178 | 178 | t.integer "author_id" |
| 179 | - t.datetime "created_at", null: false | |
| 180 | - t.datetime "updated_at", null: false | |
| 179 | + t.datetime "created_at" | |
| 180 | + t.datetime "updated_at" | |
| 181 | 181 | t.integer "project_id" |
| 182 | 182 | t.string "attachment" |
| 183 | 183 | t.string "line_code" |
| ... | ... | @@ -199,8 +199,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do |
| 199 | 199 | t.string "name" |
| 200 | 200 | t.string "path" |
| 201 | 201 | t.text "description" |
| 202 | - t.datetime "created_at", null: false | |
| 203 | - t.datetime "updated_at", null: false | |
| 202 | + t.datetime "created_at" | |
| 203 | + t.datetime "updated_at" | |
| 204 | 204 | t.integer "creator_id" |
| 205 | 205 | t.boolean "issues_enabled", default: true, null: false |
| 206 | 206 | t.boolean "wall_enabled", default: true, null: false |
| ... | ... | @@ -252,8 +252,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do |
| 252 | 252 | t.text "content", limit: 2147483647 |
| 253 | 253 | t.integer "author_id", null: false |
| 254 | 254 | t.integer "project_id" |
| 255 | - t.datetime "created_at", null: false | |
| 256 | - t.datetime "updated_at", null: false | |
| 255 | + t.datetime "created_at" | |
| 256 | + t.datetime "updated_at" | |
| 257 | 257 | t.string "file_name" |
| 258 | 258 | t.datetime "expires_at" |
| 259 | 259 | t.boolean "private", default: true, null: false |
| ... | ... | @@ -275,45 +275,42 @@ ActiveRecord::Schema.define(version: 20140304005354) do |
| 275 | 275 | t.datetime "created_at" |
| 276 | 276 | end |
| 277 | 277 | |
| 278 | - add_index "taggings", ["tag_id"], name: "index_taggings_on_tag_id", using: :btree | |
| 279 | - add_index "taggings", ["taggable_id", "taggable_type", "context"], name: "index_taggings_on_taggable_id_and_taggable_type_and_context", using: :btree | |
| 280 | - | |
| 281 | 278 | create_table "tags", force: true do |t| |
| 282 | 279 | t.string "name" |
| 283 | 280 | end |
| 284 | 281 | |
| 285 | 282 | create_table "users", force: true do |t| |
| 286 | - t.string "email", default: "", null: false | |
| 287 | - t.string "encrypted_password", default: "", null: false | |
| 283 | + t.string "email", default: "", null: false | |
| 284 | + t.string "encrypted_password", limit: 128, default: "", null: false | |
| 288 | 285 | t.string "reset_password_token" |
| 289 | 286 | t.datetime "reset_password_sent_at" |
| 290 | 287 | t.datetime "remember_created_at" |
| 291 | - t.integer "sign_in_count", default: 0 | |
| 288 | + t.integer "sign_in_count", default: 0 | |
| 292 | 289 | t.datetime "current_sign_in_at" |
| 293 | 290 | t.datetime "last_sign_in_at" |
| 294 | 291 | t.string "current_sign_in_ip" |
| 295 | 292 | t.string "last_sign_in_ip" |
| 296 | - t.datetime "created_at", null: false | |
| 297 | - t.datetime "updated_at", null: false | |
| 293 | + t.datetime "created_at" | |
| 294 | + t.datetime "updated_at" | |
| 298 | 295 | t.string "name" |
| 299 | - t.boolean "admin", default: false, null: false | |
| 300 | - t.integer "projects_limit", default: 10 | |
| 301 | - t.string "skype", default: "", null: false | |
| 302 | - t.string "linkedin", default: "", null: false | |
| 303 | - t.string "twitter", default: "", null: false | |
| 296 | + t.boolean "admin", default: false, null: false | |
| 297 | + t.integer "projects_limit", default: 10 | |
| 298 | + t.string "skype", default: "", null: false | |
| 299 | + t.string "linkedin", default: "", null: false | |
| 300 | + t.string "twitter", default: "", null: false | |
| 304 | 301 | t.string "authentication_token" |
| 305 | - t.integer "theme_id", default: 1, null: false | |
| 302 | + t.integer "theme_id", default: 1, null: false | |
| 306 | 303 | t.string "bio" |
| 307 | - t.integer "failed_attempts", default: 0 | |
| 304 | + t.integer "failed_attempts", default: 0 | |
| 308 | 305 | t.datetime "locked_at" |
| 309 | 306 | t.string "extern_uid" |
| 310 | 307 | t.string "provider" |
| 311 | 308 | t.string "username" |
| 312 | - t.boolean "can_create_group", default: true, null: false | |
| 313 | - t.boolean "can_create_team", default: true, null: false | |
| 309 | + t.boolean "can_create_group", default: true, null: false | |
| 310 | + t.boolean "can_create_team", default: true, null: false | |
| 314 | 311 | t.string "state" |
| 315 | - t.integer "color_scheme_id", default: 1, null: false | |
| 316 | - t.integer "notification_level", default: 1, null: false | |
| 312 | + t.integer "color_scheme_id", default: 1, null: false | |
| 313 | + t.integer "notification_level", default: 1, null: false | |
| 317 | 314 | t.datetime "password_expires_at" |
| 318 | 315 | t.integer "created_by_id" |
| 319 | 316 | t.string "avatar" |
| ... | ... | @@ -321,15 +318,15 @@ ActiveRecord::Schema.define(version: 20140304005354) do |
| 321 | 318 | t.datetime "confirmed_at" |
| 322 | 319 | t.datetime "confirmation_sent_at" |
| 323 | 320 | t.string "unconfirmed_email" |
| 324 | - t.boolean "hide_no_ssh_key", default: false | |
| 325 | - t.string "website_url", default: "", null: false | |
| 321 | + t.boolean "hide_no_ssh_key", default: false | |
| 322 | + t.string "website_url", default: "", null: false | |
| 323 | + t.datetime "last_credential_check_at" | |
| 326 | 324 | end |
| 327 | 325 | |
| 328 | 326 | add_index "users", ["admin"], name: "index_users_on_admin", using: :btree |
| 329 | 327 | add_index "users", ["authentication_token"], name: "index_users_on_authentication_token", unique: true, using: :btree |
| 330 | 328 | add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true, using: :btree |
| 331 | 329 | add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree |
| 332 | - add_index "users", ["extern_uid", "provider"], name: "index_users_on_extern_uid_and_provider", unique: true, using: :btree | |
| 333 | 330 | add_index "users", ["name"], name: "index_users_on_name", using: :btree |
| 334 | 331 | add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree |
| 335 | 332 | add_index "users", ["username"], name: "index_users_on_username", using: :btree |
| ... | ... | @@ -348,8 +345,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do |
| 348 | 345 | create_table "users_projects", force: true do |t| |
| 349 | 346 | t.integer "user_id", null: false |
| 350 | 347 | t.integer "project_id", null: false |
| 351 | - t.datetime "created_at", null: false | |
| 352 | - t.datetime "updated_at", null: false | |
| 348 | + t.datetime "created_at" | |
| 349 | + t.datetime "updated_at" | |
| 353 | 350 | t.integer "project_access", default: 0, null: false |
| 354 | 351 | t.integer "notification_level", default: 3, null: false |
| 355 | 352 | end |
| ... | ... | @@ -361,8 +358,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do |
| 361 | 358 | create_table "web_hooks", force: true do |t| |
| 362 | 359 | t.string "url" |
| 363 | 360 | t.integer "project_id" |
| 364 | - t.datetime "created_at", null: false | |
| 365 | - t.datetime "updated_at", null: false | |
| 361 | + t.datetime "created_at" | |
| 362 | + t.datetime "updated_at" | |
| 366 | 363 | t.string "type", default: "ProjectHook" |
| 367 | 364 | t.integer "service_id" |
| 368 | 365 | t.boolean "push_events", default: true, null: false | ... | ... |