blob: c971913a74f0554ccaee059839e055cc91b3cce8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# == Schema Information
#
# Table name: govuk_guix_revisions
#
# commit_hash :string not null, primary key
# store_path :string
# created_at :datetime not null
# updated_at :datetime not null
# archived :boolean default(FALSE), not null
#
class GovukGuix::Revision < ApplicationRecord
self.primary_key = 'commit_hash'
default_scope { order(:created_at).reverse_order }
has_many :mini_environments, foreign_key: 'govuk_guix_revision_id'
end
|