mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 00:33:36 +02:00
Add different ip version support to nameserver
This commit is contained in:
parent
a846a51444
commit
793b0d22ff
7 changed files with 18 additions and 13 deletions
6
db/migrate/20140813135408_add_ipv6_to_nameserver.rb
Normal file
6
db/migrate/20140813135408_add_ipv6_to_nameserver.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
class AddIpv6ToNameserver < ActiveRecord::Migration
|
||||
def change
|
||||
rename_column :nameservers, :ip, :ipv4
|
||||
add_column :nameservers, :ipv6, :string
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20140813102245) do
|
||||
ActiveRecord::Schema.define(version: 20140813135408) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -108,10 +108,11 @@ ActiveRecord::Schema.define(version: 20140813102245) do
|
|||
|
||||
create_table "nameservers", force: true do |t|
|
||||
t.string "hostname"
|
||||
t.string "ip"
|
||||
t.string "ipv4"
|
||||
t.integer "ns_set_id"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "ipv6"
|
||||
end
|
||||
|
||||
create_table "nameservers_ns_sets", force: true do |t|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue