1 # == Schema Information
3 # Table name: changeset_tags
5 # changeset_id :bigint(8) not null, primary key
6 # k :string default(""), not null, primary key
7 # v :string default(""), not null
11 # changeset_tags_id_fkey (changeset_id => changesets.id)
14 class ChangesetTag < ApplicationRecord
17 validates :changeset, :associated => true
18 validates :k, :v, :allow_blank => true, :length => { :maximum => 255 }, :characters => true
19 validates :k, :uniqueness => { :scope => :changeset_id }