andey/bestofama

View on GitHub
app/models/trash.rb

Summary

Maintainability
A
0 mins
Test Coverage
# == Schema Information
#
# Table name: trashes
#
#  id         :integer          not null, primary key
#  key        :string(255)      not null
#  created_at :datetime         not null
#  updated_at :datetime         not null
#

class Trash < ActiveRecord::Base
  validates_presence_of :key
  validates_uniqueness_of :key
end