Add reserved domains list

This commit is contained in:
Martin Lensment 2014-07-30 11:40:49 +03:00
parent b6ef81fe31
commit fb12d056ce
4 changed files with 5810 additions and 2 deletions

View file

@ -9,8 +9,8 @@ class Domain < ActiveRecord::Base
belongs_to :admin_contact, class_name: 'Contact'
validates :name, domain_name: true
validates :name_dirty, uniqueness: true
validates :name_puny, domain_name: true
validates :name_dirty, uniqueness: true
def name=(value)
value.strip!

View file

@ -0,0 +1,3 @@
class ReservedDomain < ActiveRecord::Base
end

File diff suppressed because it is too large Load diff

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20140724084927) do
ActiveRecord::Schema.define(version: 20140730082358) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -118,6 +118,12 @@ ActiveRecord::Schema.define(version: 20140724084927) do
t.datetime "updated_at"
end
create_table "reserved_domains", force: true do |t|
t.string "name"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "rights", force: true do |t|
t.string "code"
t.datetime "created_at"