blob: 6eaf00c1edce2fc25808ca7c2d9825f619942022 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
class Change
include Elasticsearch::Persistence::Model
include Kkuleomi::Store::Model
index_name "change-#{Rails.env}"
attribute :package, String, mapping: { type: 'keyword' }
attribute :category, String, mapping: { type: 'keyword' }
attribute :change_type, String, mapping: { type: 'keyword' }
attribute :version, String, mapping: { type: 'keyword' }
attribute :arches, String, mapping: { type: 'keyword' }
attribute :commit, Hash, default: {}, mapping: { type: 'object' }
end
|