Sha256: 6996e52c0461dafd23a5ba0cf38cc98d9d70c4d8e176ff56e7f98bc7194dabcc

Contents?: true

Size: 162 Bytes

Versions: 2

Compression:

Stored size: 162 Bytes

Contents

class ModelTranslation < ActiveRecord::Base

  belongs_to :models

  validates :locale, presence: true
  validates :model_id, uniqueness: { scope: :locale }

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
translatable_records-1.1.4 test/dummy/app/models/model_translation.rb
translatable_records-1.1.2 test/dummy/app/models/model_translation.rb