Change post_appeals.creator_ip_addr from integer to inet.
The existing values are garbage, rails stored e.g. "87.126.98.245" as "87.126.98.245".to_i => 87. The column is nulled to indicate these IPs are unknown.
This commit is contained in:
@@ -2557,7 +2557,7 @@ CREATE TABLE post_appeals (
|
||||
id integer NOT NULL,
|
||||
post_id integer NOT NULL,
|
||||
creator_id integer NOT NULL,
|
||||
creator_ip_addr integer NOT NULL,
|
||||
creator_ip_addr inet,
|
||||
reason text,
|
||||
created_at timestamp without time zone,
|
||||
updated_at timestamp without time zone
|
||||
@@ -7438,3 +7438,6 @@ INSERT INTO schema_migrations (version) VALUES ('20161229001201');
|
||||
INSERT INTO schema_migrations (version) VALUES ('20170106012138');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20170112021922');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20170112060921');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user