diff --git a/app/models/category_search_data.rb b/app/models/category_search_data.rb index f199887a366..b23bf93604b 100644 --- a/app/models/category_search_data.rb +++ b/app/models/category_search_data.rb @@ -10,6 +10,7 @@ end # search_data :tsvector # raw_data :text # locale :text +# version :integer default(0) # # Indexes # diff --git a/app/models/category_tag.rb b/app/models/category_tag.rb index 20ab52d7bc2..507d13e3845 100644 --- a/app/models/category_tag.rb +++ b/app/models/category_tag.rb @@ -10,8 +10,8 @@ end # id :integer not null, primary key # category_id :integer not null # tag_id :integer not null -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # # Indexes # diff --git a/app/models/category_tag_group.rb b/app/models/category_tag_group.rb index 3c642d39649..c262539b961 100644 --- a/app/models/category_tag_group.rb +++ b/app/models/category_tag_group.rb @@ -10,8 +10,8 @@ end # id :integer not null, primary key # category_id :integer not null # tag_group_id :integer not null -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # # Indexes # diff --git a/app/models/child_theme.rb b/app/models/child_theme.rb index 6e101bd8aae..e4eb2d0ef7f 100644 --- a/app/models/child_theme.rb +++ b/app/models/child_theme.rb @@ -10,8 +10,8 @@ end # id :integer not null, primary key # parent_theme_id :integer # child_theme_id :integer -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # # Indexes # diff --git a/app/models/embeddable_host.rb b/app/models/embeddable_host.rb index 447ee6c161a..43dc6901b83 100644 --- a/app/models/embeddable_host.rb +++ b/app/models/embeddable_host.rb @@ -57,8 +57,8 @@ end # id :integer not null, primary key # host :string not null # category_id :integer not null -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # path_whitelist :string # class_name :string # diff --git a/app/models/group.rb b/app/models/group.rb index c1f1fce081c..c302ca50928 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -628,12 +628,13 @@ end # flair_color :string # bio_raw :text # bio_cooked :text -# public_admission :boolean default(FALSE), not null # allow_membership_requests :boolean default(FALSE), not null # full_name :string # default_notification_level :integer default(3), not null # visibility_level :integer default(0), not null # public_exit :boolean default(FALSE), not null +# public_admission :boolean default(FALSE), not null +# membership_request_template :text # # Indexes # diff --git a/app/models/group_archived_message.rb b/app/models/group_archived_message.rb index 91d2062cae5..5ec3b9d6bac 100644 --- a/app/models/group_archived_message.rb +++ b/app/models/group_archived_message.rb @@ -32,8 +32,8 @@ end # id :integer not null, primary key # group_id :integer not null # topic_id :integer not null -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # # Indexes # diff --git a/app/models/group_mention.rb b/app/models/group_mention.rb index 30eb647ebc8..3cef10dd735 100644 --- a/app/models/group_mention.rb +++ b/app/models/group_mention.rb @@ -10,8 +10,8 @@ end # id :integer not null, primary key # post_id :integer # group_id :integer -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # # Indexes # diff --git a/app/models/muted_user.rb b/app/models/muted_user.rb index 59f8089c6f7..1ba464105d0 100644 --- a/app/models/muted_user.rb +++ b/app/models/muted_user.rb @@ -10,8 +10,8 @@ end # id :integer not null, primary key # user_id :integer not null # muted_user_id :integer not null -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # # Indexes # diff --git a/app/models/permalink.rb b/app/models/permalink.rb index 4bfaa5a9cd5..62e3ef84f50 100644 --- a/app/models/permalink.rb +++ b/app/models/permalink.rb @@ -101,8 +101,8 @@ end # topic_id :integer # post_id :integer # category_id :integer -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # external_url :string(1000) # # Indexes diff --git a/app/models/post_search_data.rb b/app/models/post_search_data.rb index 7b82fca9bae..58940e693b9 100644 --- a/app/models/post_search_data.rb +++ b/app/models/post_search_data.rb @@ -10,6 +10,7 @@ end # search_data :tsvector # raw_data :text # locale :string +# version :integer default(0) # # Indexes # diff --git a/app/models/post_stat.rb b/app/models/post_stat.rb index ec293b66636..9de208b538d 100644 --- a/app/models/post_stat.rb +++ b/app/models/post_stat.rb @@ -11,8 +11,8 @@ end # drafts_saved :integer # typing_duration_msecs :integer # composer_open_duration_msecs :integer -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # # Indexes # diff --git a/app/models/queued_post.rb b/app/models/queued_post.rb index f7b3147e8be..86177137d78 100644 --- a/app/models/queued_post.rb +++ b/app/models/queued_post.rb @@ -125,8 +125,8 @@ end # approved_at :datetime # rejected_by_id :integer # rejected_at :datetime -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # # Indexes # diff --git a/app/models/remote_theme.rb b/app/models/remote_theme.rb index 3030b4aa22d..1b8bfba1ed3 100644 --- a/app/models/remote_theme.rb +++ b/app/models/remote_theme.rb @@ -155,6 +155,6 @@ end # license_url :string # commits_behind :integer # remote_updated_at :datetime -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # diff --git a/app/models/stylesheet_cache.rb b/app/models/stylesheet_cache.rb index b421c0df7ad..c545b04c8ae 100644 --- a/app/models/stylesheet_cache.rb +++ b/app/models/stylesheet_cache.rb @@ -37,8 +37,8 @@ end # target :string not null # digest :string not null # content :text not null -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # theme_id :integer default(-1), not null # source_map :text # diff --git a/app/models/tag.rb b/app/models/tag.rb index a9223b670ac..69ab1e65eae 100644 --- a/app/models/tag.rb +++ b/app/models/tag.rb @@ -65,8 +65,8 @@ end # id :integer not null, primary key # name :string not null # topic_count :integer default(0), not null -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # # Indexes # diff --git a/app/models/tag_group.rb b/app/models/tag_group.rb index 772d9036272..278bc0e70e9 100644 --- a/app/models/tag_group.rb +++ b/app/models/tag_group.rb @@ -29,8 +29,8 @@ end # # id :integer not null, primary key # name :string not null -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # parent_tag_id :integer # one_per_topic :boolean default(FALSE) # diff --git a/app/models/tag_group_membership.rb b/app/models/tag_group_membership.rb index 76e9be22c36..3bc5610e278 100644 --- a/app/models/tag_group_membership.rb +++ b/app/models/tag_group_membership.rb @@ -10,8 +10,8 @@ end # id :integer not null, primary key # tag_id :integer not null # tag_group_id :integer not null -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # # Indexes # diff --git a/app/models/tag_user.rb b/app/models/tag_user.rb index 52db737cb5e..d54b787c405 100644 --- a/app/models/tag_user.rb +++ b/app/models/tag_user.rb @@ -161,8 +161,8 @@ end # tag_id :integer not null # user_id :integer not null # notification_level :integer not null -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # # Indexes # diff --git a/app/models/theme_field.rb b/app/models/theme_field.rb index 26e67329ee0..fdf384660ad 100644 --- a/app/models/theme_field.rb +++ b/app/models/theme_field.rb @@ -158,8 +158,8 @@ end # name :string(30) not null # value :text not null # value_baked :text -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # compiler_version :integer default(0), not null # error :string # upload_id :integer diff --git a/app/models/topic_link.rb b/app/models/topic_link.rb index 4576a0a601c..e9a178cb8ef 100644 --- a/app/models/topic_link.rb +++ b/app/models/topic_link.rb @@ -276,9 +276,11 @@ end # title :string # crawled_at :datetime # quote :boolean default(FALSE), not null +# extension :string(10) # # Indexes # +# index_topic_links_on_extension (extension) # index_topic_links_on_link_post_id_and_reflection (link_post_id,reflection) # index_topic_links_on_post_id (post_id) # index_topic_links_on_topic_id (topic_id) diff --git a/app/models/topic_search_data.rb b/app/models/topic_search_data.rb index 883ff5cf7a1..ddf065327be 100644 --- a/app/models/topic_search_data.rb +++ b/app/models/topic_search_data.rb @@ -6,11 +6,11 @@ end # # Table name: topic_search_data # -# topic_id :integer not null, primary key -# raw_data :text -# locale :string not null -# search_data :tsvector -# core_version :integer default(0) +# topic_id :integer not null, primary key +# raw_data :text +# locale :string not null +# search_data :tsvector +# version :integer default(0) # # Indexes # diff --git a/app/models/topic_tag.rb b/app/models/topic_tag.rb index f8dc3cfee01..e96028f5fed 100644 --- a/app/models/topic_tag.rb +++ b/app/models/topic_tag.rb @@ -10,8 +10,8 @@ end # id :integer not null, primary key # topic_id :integer not null # tag_id :integer not null -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # # Indexes # diff --git a/app/models/topic_timer.rb b/app/models/topic_timer.rb index 2db32b4765d..85e7d7769b8 100644 --- a/app/models/topic_timer.rb +++ b/app/models/topic_timer.rb @@ -154,8 +154,8 @@ end # based_on_last_post :boolean default(FALSE), not null # deleted_at :datetime # deleted_by_id :integer -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # category_id :integer # public_type :boolean default(TRUE) # diff --git a/app/models/unsubscribe_key.rb b/app/models/unsubscribe_key.rb index 6cc8b7f25f4..967d8f34a13 100644 --- a/app/models/unsubscribe_key.rb +++ b/app/models/unsubscribe_key.rb @@ -30,8 +30,8 @@ end # # key :string(64) not null, primary key # user_id :integer not null -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # unsubscribe_key_type :string # topic_id :integer # post_id :integer diff --git a/app/models/upload.rb b/app/models/upload.rb index f9886d8998d..79429b1e94a 100644 --- a/app/models/upload.rb +++ b/app/models/upload.rb @@ -149,6 +149,7 @@ end # sha1 :string(40) # origin :string(1000) # retain_hours :integer +# extension :string(10) # # Indexes # diff --git a/app/models/user_api_key.rb b/app/models/user_api_key.rb index 39f8d4a80f9..dc1edca2d60 100644 --- a/app/models/user_api_key.rb +++ b/app/models/user_api_key.rb @@ -70,8 +70,8 @@ end # key :string not null # application_name :string not null # push_url :string -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # revoked_at :datetime # scopes :text default([]), not null, is an Array # diff --git a/app/models/user_archived_message.rb b/app/models/user_archived_message.rb index 36c3ccd1ac4..556667e3f79 100644 --- a/app/models/user_archived_message.rb +++ b/app/models/user_archived_message.rb @@ -37,8 +37,8 @@ end # id :integer not null, primary key # user_id :integer not null # topic_id :integer not null -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # # Indexes # diff --git a/app/models/user_auth_token.rb b/app/models/user_auth_token.rb index 5597d523679..045fc2f9d43 100644 --- a/app/models/user_auth_token.rb +++ b/app/models/user_auth_token.rb @@ -183,8 +183,8 @@ end # legacy :boolean default(FALSE), not null # client_ip :inet # rotated_at :datetime not null -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # seen_at :datetime # # Indexes diff --git a/app/models/user_email.rb b/app/models/user_email.rb index 2cca0706a73..485c3f0bc08 100644 --- a/app/models/user_email.rb +++ b/app/models/user_email.rb @@ -37,8 +37,8 @@ end # user_id :integer not null # email :string(513) not null # primary :boolean default(FALSE), not null -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # # Indexes # diff --git a/app/models/user_export.rb b/app/models/user_export.rb index 71c1143bdfc..34d8fa7ed94 100644 --- a/app/models/user_export.rb +++ b/app/models/user_export.rb @@ -28,6 +28,6 @@ end # id :integer not null, primary key # file_name :string not null # user_id :integer not null -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # diff --git a/app/models/user_field.rb b/app/models/user_field.rb index 6505982b9cc..77c1f3383de 100644 --- a/app/models/user_field.rb +++ b/app/models/user_field.rb @@ -18,8 +18,8 @@ end # id :integer not null, primary key # name :string not null # field_type :string not null -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # editable :boolean default(FALSE), not null # description :string not null # required :boolean default(TRUE), not null diff --git a/app/models/user_field_option.rb b/app/models/user_field_option.rb index 56299f3ee95..a4412553425 100644 --- a/app/models/user_field_option.rb +++ b/app/models/user_field_option.rb @@ -8,6 +8,6 @@ end # id :integer not null, primary key # user_field_id :integer not null # value :string not null -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # diff --git a/app/models/user_search_data.rb b/app/models/user_search_data.rb index 989df80169a..2de3be31cb0 100644 --- a/app/models/user_search_data.rb +++ b/app/models/user_search_data.rb @@ -10,6 +10,7 @@ end # search_data :tsvector # raw_data :text # locale :text +# version :integer default(0) # # Indexes # diff --git a/app/models/user_warning.rb b/app/models/user_warning.rb index dd89c7f9957..612406ac0e9 100644 --- a/app/models/user_warning.rb +++ b/app/models/user_warning.rb @@ -12,8 +12,8 @@ end # topic_id :integer not null # user_id :integer not null # created_by_id :integer not null -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # # Indexes # diff --git a/app/models/watched_word.rb b/app/models/watched_word.rb index d9af0071de1..3c4ae827ce0 100644 --- a/app/models/watched_word.rb +++ b/app/models/watched_word.rb @@ -59,8 +59,8 @@ end # id :integer not null, primary key # word :string not null # action :integer not null -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # # Indexes # diff --git a/app/models/web_hook.rb b/app/models/web_hook.rb index e3335e02043..2964e1a4357 100644 --- a/app/models/web_hook.rb +++ b/app/models/web_hook.rb @@ -62,6 +62,6 @@ end # wildcard_web_hook :boolean default(FALSE), not null # verify_certificate :boolean default(TRUE), not null # active :boolean default(FALSE), not null -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # diff --git a/app/models/web_hook_event.rb b/app/models/web_hook_event.rb index 0626c7fecc5..ce2c134bc12 100644 --- a/app/models/web_hook_event.rb +++ b/app/models/web_hook_event.rb @@ -30,8 +30,8 @@ end # response_headers :string # response_body :text # duration :integer default(0) -# created_at :datetime -# updated_at :datetime +# created_at :datetime not null +# updated_at :datetime not null # # Indexes #