Tom Hughes
ab4f96261f
Drop explicit lengths from bigint columns
2025-02-28 17:22:56 +00:00
Nenad Vujicic
a4d3d324ec
Add note and diary comments counts to the user profile
...
Fixes #1643
2024-06-07 21:20:42 +02:00
Gregory Igelmund
a4edd3fd04
Annotate models
2023-10-14 11:19:13 +08:00
Andy Allan
8938ab7997
Remove redundant presence validation on belongs_to
...
There's no need for us to have it when rails does this for us.
2022-03-01 10:01:16 +00:00
Andy Allan
619ac4c5b2
Enable active_record.belongs_to_required_by_default
...
This switches the logic so that belongs_to parent objects must exist
by default, and marks the optional ones explicitly. This is reflected
in the null/not_null status on the relevant db columns.
2022-02-23 20:33:28 +00:00
Tom Hughes
39b60219fe
Fix new rubocop warnings
2020-06-11 19:21:41 +01:00
Andy Allan
a41d500b9f
Create an ApplicationRecord for models to inherit from
...
This is the default for Rails 5+, and also paves the way for
multiple database support.
2019-11-27 11:50:48 +01:00
Tom Hughes
135ec35a91
Fix numericality validation to use correct integer only constraint
...
Fixes #2355
2019-08-22 12:14:06 +01:00
Andy Allan
8ae8768cd3
Update annotations to show 'using' clause on indexes
2019-05-29 12:02:50 +02:00
Andy Allan
4377e2bd55
Update annotations to correctly show bigint types
2019-05-29 11:52:20 +02:00
Tom Hughes
d73a5d4bc0
Merge character validators
2018-11-05 18:54:19 +00:00
Tom Hughes
873ac155ca
Improve consistency of text validations
2018-11-05 17:06:48 +00:00
J Guthrie
c2f23fea6a
Create invalid_char validators and apply to models
2018-11-05 14:27:03 +00:00
Tom Hughes
e93e5fbe63
Allow note comments with no body
2018-11-05 09:24:51 +00:00
mmd-osm
d9a48d66f9
Limit notes sizes to 2000 characters
2018-11-03 18:32:02 +01:00
Andy Allan
b2a8df0bd7
Add annotate gem and associated rake task. Annotate models.
2017-10-22 22:18:26 +01:00
Tom Hughes
5b33f3f8e3
Fix rubocop warnings
2017-06-02 00:08:30 +01:00
Tom Hughes
dbe165bbb3
Fix some rubocop rails style issues
2015-02-26 00:12:54 +00:00
Tom Hughes
ef7f3d800c
Fix most auto-correctable rubocop issues
2015-02-20 08:56:16 +00:00
Tom Hughes
8983fb3600
Validate note comments for control characters
2014-10-16 00:59:34 +01:00
Tom Hughes
43f39c50a3
Touch notes when new comments are added
2013-02-03 11:06:34 +00:00
Tom Hughes
ba5107ebb5
Remove the author_name field from notes
2012-12-03 14:50:54 +00:00
Tom Hughes
654d22ed2e
Return the body of a note comment as a rich text object
2012-10-15 22:34:55 +01:00
Tom Hughes
ab2acea49b
Tidy up the note_comment model a bit
2011-05-22 11:49:48 +01:00
Tom Hughes
e3b8b89330
Mass rename of "bugs" as "notes" for increased user friendliness
2011-05-21 17:22:31 +01:00