class Url < ActiveRecord::Base
  attr_accessible :address
  validates_format_of :address, :with => /https?:\/\/.+/
  has_many :snapshots
end

class Url < ActiveRecord::Base
  attr_accessible :address
  validates_format_of :address, :with => /https?:\/\/.+/
  validates_uniqueness_of :address

  has_many :snapshots
end

Add uniqueness validation to address
Add uniqueness validation to address
