--- /dev/null
+class ChangeNoteAddressToInet < ActiveRecord::Migration
+ def up
+ execute "ALTER TABLE note_comments ALTER COLUMN author_ip TYPE inet USING CAST(author_ip AS inet)"
+ end
+
+ def down
+ change_column :note_comments, :author_ip, :string
+ end
+end
note_id bigint NOT NULL,
visible boolean NOT NULL,
created_at timestamp without time zone NOT NULL,
- author_ip character varying(255),
+ author_ip inet,
author_id bigint,
body text,
event note_event_enum
INSERT INTO schema_migrations (version) VALUES ('20121202155309');
+INSERT INTO schema_migrations (version) VALUES ('20121203124841');
+
INSERT INTO schema_migrations (version) VALUES ('21');
INSERT INTO schema_migrations (version) VALUES ('22');