Commit graph

15 commits

Author SHA1 Message Date
Tom Hughes
eada36ff96 Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
Tom Hughes
f227804093 Add some extra indexes on issues 2018-06-10 15:25:53 +01:00
Andy Allan
ee1a8637d3 Convert issue status to an enum 2018-03-21 12:05:08 +08:00
Andy Allan
5310c7000c Remove cascading deletes, add another foreign key, and switch index around. 2018-03-14 16:15:39 +08:00
Andy Allan
3e5a4a14df Ensure reports have an issue id and a user id 2018-03-14 15:36:46 +08:00
Andy Allan
80a241f798 Allow reporting of anonymous notes 2018-02-28 14:26:40 +08:00
Andy Allan
63992d83bd Store the report category. 2017-12-13 16:02:55 +00:00
Andy Allan
0df788d742 Rename 'issue_type' to 'assigned_role', set defaults in the model and test. 2017-12-06 17:15:11 +00:00
Andy Allan
1956ab5913 Use a simple user_id for tables with one owning user
This is the standard way of naming in rails, and it avoids having
to tell rails which models are actually required.
2017-11-29 16:23:13 +00:00
Andy Allan
1d24228a3b Combine migrations into one
This makes it easier to review, rather than having a PR with migrations that
correct each other.
2017-11-29 16:13:32 +00:00
Andy Allan
68213e3812 Adjust for rails5 convention on migrations. 2017-11-29 16:03:27 +00:00
Andy Allan
67a95ac7e9 Remove created_at / updated_at column definitions since these duplicate t.timestamps 2017-09-13 14:57:07 +01:00
Andy Allan
c00c515d9d Ensure report details are not blank. 2017-09-06 18:17:54 +01:00
Matt Amos
757a1aaa85 Made rubocop happy by formatting and minor syntax tweaks. 2016-08-22 17:24:10 +01:00
Matt Amos
5cc0eba3f1 Reordered migrations to make them the latest. 2016-08-22 16:32:54 +01:00
Renamed from db/migrate/20150516073616_create_issues_and_reports.rb (Browse further)