mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
Restructure white ip interfaces #2713
This commit is contained in:
parent
cc32312328
commit
c6073c7e87
9 changed files with 32 additions and 23 deletions
|
@ -0,0 +1,6 @@
|
|||
class AddMultipleInterfacesForWhiteIp < ActiveRecord::Migration
|
||||
def change
|
||||
change_column :white_ips, :interface, "varchar[] USING (string_to_array(interface, ','))"
|
||||
rename_column :white_ips, :interface, :interfaces
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20150910113839) do
|
||||
ActiveRecord::Schema.define(version: 20150915094707) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -1064,7 +1064,7 @@ ActiveRecord::Schema.define(version: 20150910113839) do
|
|||
t.integer "registrar_id"
|
||||
t.string "ipv4"
|
||||
t.string "ipv6"
|
||||
t.string "interface"
|
||||
t.string "interfaces", array: true
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "creator_str"
|
||||
|
|
|
@ -2717,7 +2717,7 @@ CREATE TABLE white_ips (
|
|||
registrar_id integer,
|
||||
ipv4 character varying,
|
||||
ipv6 character varying,
|
||||
interface character varying,
|
||||
interfaces character varying[],
|
||||
created_at timestamp without time zone,
|
||||
updated_at timestamp without time zone,
|
||||
creator_str character varying,
|
||||
|
@ -4934,3 +4934,5 @@ INSERT INTO schema_migrations (version) VALUES ('20150827151906');
|
|||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20150910113839');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20150915094707');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue