summaryrefslogtreecommitdiff
path: root/db/migrate/20160824124900_add_table_issue_metrics.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable rubocop for db/**/* and ee/db/**/*49582-enable-cops-for-dbLin Jen-Shin2018-07-251-2/+0
|
* Add database helpers 'add_timestamps_with_timezone' and ↵32054-rails-should-use-timestamptz-database-type-for-postgresqlblackst0ne2017-06-131-0/+2
| | | | 'timestamps_with_timezone'
* Fix `ON DELETE CASCADE` migrations.Timothy Andrew2016-09-201-1/+1
| | | | Incorrect syntax.
* Implement review comments from @yorickpeterseTimothy Andrew2016-09-201-3/+3
| | | | | | | | | | | | | | 1. Change multiple updates to a single `update_all` 2. Use cascading deletes 3. Extract an average function for the database median. 4. Move database median to `lib/gitlab/database` 5. Use `delete_all` instead of `destroy_all` 6. Minor refactoring
* Remove unused merge request metrics.Timothy Andrew2016-09-191-0/+1
| | | | | | - These are not being used anymore. - Consolidate all issue metrics into a single migration. - Consolidate all merge request metrics into a single migration.
* Add an `Issue::Metrics` model.Timothy Andrew2016-08-261-0/+36
- And store the `first_associated_with_milestone_at` and `first_added_to_board_at` times, when an issue is saved.