User's blocked field refactored to use state machine
This commit is contained in:
parent
9a06dd4aa1
commit
0d9a6fe7b1
12 changed files with 40 additions and 33 deletions
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20130220133245) do
|
||||
ActiveRecord::Schema.define(:version => 20130304105317) do
|
||||
|
||||
create_table "events", :force => true do |t|
|
||||
t.string "target_type"
|
||||
|
@ -261,7 +261,6 @@ ActiveRecord::Schema.define(:version => 20130220133245) do
|
|||
t.boolean "dark_scheme", :default => false, :null => false
|
||||
t.integer "theme_id", :default => 1, :null => false
|
||||
t.string "bio"
|
||||
t.boolean "blocked", :default => false, :null => false
|
||||
t.integer "failed_attempts", :default => 0
|
||||
t.datetime "locked_at"
|
||||
t.string "extern_uid"
|
||||
|
@ -269,10 +268,10 @@ ActiveRecord::Schema.define(:version => 20130220133245) do
|
|||
t.string "username"
|
||||
t.boolean "can_create_group", :default => true, :null => false
|
||||
t.boolean "can_create_team", :default => true, :null => false
|
||||
t.string "state"
|
||||
end
|
||||
|
||||
add_index "users", ["admin"], :name => "index_users_on_admin"
|
||||
add_index "users", ["blocked"], :name => "index_users_on_blocked"
|
||||
add_index "users", ["email"], :name => "index_users_on_email", :unique => true
|
||||
add_index "users", ["extern_uid", "provider"], :name => "index_users_on_extern_uid_and_provider", :unique => true
|
||||
add_index "users", ["name"], :name => "index_users_on_name"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue