mirror of
https://github.com/internetee/registry.git
synced 2025-08-13 21:19:31 +02:00
Add reserved domains list
This commit is contained in:
parent
b6ef81fe31
commit
fb12d056ce
4 changed files with 5810 additions and 2 deletions
|
@ -9,8 +9,8 @@ class Domain < ActiveRecord::Base
|
||||||
belongs_to :admin_contact, class_name: 'Contact'
|
belongs_to :admin_contact, class_name: 'Contact'
|
||||||
|
|
||||||
validates :name, domain_name: true
|
validates :name, domain_name: true
|
||||||
validates :name_dirty, uniqueness: true
|
|
||||||
validates :name_puny, domain_name: true
|
validates :name_puny, domain_name: true
|
||||||
|
validates :name_dirty, uniqueness: true
|
||||||
|
|
||||||
def name=(value)
|
def name=(value)
|
||||||
value.strip!
|
value.strip!
|
||||||
|
|
3
app/models/reserved_domain.rb
Normal file
3
app/models/reserved_domain.rb
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
class ReservedDomain < ActiveRecord::Base
|
||||||
|
|
||||||
|
end
|
5799
db/migrate/20140730082358_add_reserved_domains.rb
Normal file
5799
db/migrate/20140730082358_add_reserved_domains.rb
Normal file
File diff suppressed because it is too large
Load diff
|
@ -11,7 +11,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# 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
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
|
@ -118,6 +118,12 @@ ActiveRecord::Schema.define(version: 20140724084927) do
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
end
|
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|
|
create_table "rights", force: true do |t|
|
||||||
t.string "code"
|
t.string "code"
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue