Add importer model, validations to paper model

This commit is contained in:
Andreas Haller 2015-05-17 17:49:09 +02:00
parent 568abb631f
commit 46de026234
8 changed files with 67 additions and 13 deletions

3
app/models/importer.rb Normal file
View file

@ -0,0 +1,3 @@
class Importer < ActiveRecord::Base
validates :url, presence: true, uniqueness: true
end