diff --git a/app/models/category.rb b/app/models/category.rb index ce2eec881e8..85bfd11b9cb 100644 --- a/app/models/category.rb +++ b/app/models/category.rb @@ -387,6 +387,7 @@ end # logo_url :string(255) # background_url :string(255) # allow_badges :boolean default(TRUE), not null +# name_lower :string(50) not null # # Indexes # diff --git a/app/models/email_token.rb b/app/models/email_token.rb index 809a2368cff..66ac9112d37 100644 --- a/app/models/email_token.rb +++ b/app/models/email_token.rb @@ -81,5 +81,6 @@ end # # Indexes # -# index_email_tokens_on_token (token) UNIQUE +# index_email_tokens_on_token (token) UNIQUE +# index_email_tokens_on_user_id (user_id) # diff --git a/app/models/post_action.rb b/app/models/post_action.rb index 8e4e4845255..5144c4f2dea 100644 --- a/app/models/post_action.rb +++ b/app/models/post_action.rb @@ -452,16 +452,16 @@ end # deleted_by_id :integer # related_post_id :integer # staff_took_action :boolean default(FALSE), not null -# deferred_by_id :integer -# targets_topic :boolean default(FALSE) +# deferred_by_id :integer +# targets_topic :boolean default(FALSE), not null # agreed_at :datetime # agreed_by_id :integer -# deferred_at :datetime +# deferred_at :datetime # disagreed_at :datetime # disagreed_by_id :integer # # Indexes # -# idx_unique_actions (user_id,post_action_type_id,post_id,deleted_at,targets_topic) UNIQUE +# idx_unique_actions (user_id,post_action_type_id,post_id,targets_topic) UNIQUE # index_post_actions_on_post_id (post_id) # diff --git a/app/models/single_sign_on_record.rb b/app/models/single_sign_on_record.rb index 7f444a2c53a..e844a78a737 100644 --- a/app/models/single_sign_on_record.rb +++ b/app/models/single_sign_on_record.rb @@ -6,16 +6,16 @@ end # # Table name: single_sign_on_records # -# id :integer not null, primary key -# user_id :integer not null -# external_id :string(255) not null -# last_payload :text not null -# created_at :datetime -# updated_at :datetime -# external_username :string(255) -# external_email :string(255) -# external_name :string(255) -# external_avatar_url :string(255) +# id :integer not null, primary key +# user_id :integer not null +# external_id :string(255) not null +# last_payload :text not null +# created_at :datetime +# updated_at :datetime +# external_username :string(255) +# external_email :string(255) +# external_name :string(255) +# external_avatar_url :string(255) # # Indexes # diff --git a/app/models/user.rb b/app/models/user.rb index 0aa1e5f18a8..81f5559483c 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -769,7 +769,7 @@ end # email :string(256) not null # password_hash :string(64) # salt :string(32) -# active :boolean +# active :boolean default(FALSE), not null # username_lower :string(60) not null # auth_token :string(32) # last_seen_at :datetime