gitlab-org--gitlab-foss/db
Thong Kuah 0e15eec86d Associate clusters model to groups
Even though we currently only should have one group for a cluster, we
allow the flexibility to associate to other groups in the future.

This also matches the runner <=> groups association.

- Adds Cluster#first_group, aliased to Cluster#group. For the
conceivable future, a cluster will have at most one group.

- Prevent mixing of group and project clusters. If project type
clusters, it should only have projects assigned.  Similarly with groups.

- Default cluster_type to :project_type. As it's very small table we can
set default and null: false in one release.
2018-10-29 16:21:31 +13:00
..
fixtures Merge branch 'use-raw-file-format' into 'master' 2018-10-22 08:09:40 +00:00
importers Use Rails.root for CommonMetricsImporter 2018-09-11 17:40:32 +02:00
migrate Associate clusters model to groups 2018-10-29 16:21:31 +13:00
optional_migrations disable_statement_timeout doesn't require any argument anymore 2018-08-11 04:15:59 +02:00
post_migrate Move Project#rename_repo to a service class 2018-10-22 15:12:46 +02:00
schema.rb Associate clusters model to groups 2018-10-29 16:21:31 +13:00
seeds.rb