mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 13:15:40 +02:00
parent
46bca46320
commit
e84a1dc0de
2 changed files with 9 additions and 2 deletions
|
@ -0,0 +1,5 @@
|
||||||
|
class ChangeMessagesAttachedObjIdTypeToInt < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
change_column :messages, :attached_obj_id, 'integer USING attached_obj_id::integer'
|
||||||
|
end
|
||||||
|
end
|
|
@ -2186,7 +2186,7 @@ CREATE TABLE messages (
|
||||||
registrar_id integer,
|
registrar_id integer,
|
||||||
body character varying NOT NULL,
|
body character varying NOT NULL,
|
||||||
attached_obj_type character varying,
|
attached_obj_type character varying,
|
||||||
attached_obj_id character varying,
|
attached_obj_id integer,
|
||||||
queued boolean,
|
queued boolean,
|
||||||
created_at timestamp without time zone,
|
created_at timestamp without time zone,
|
||||||
updated_at timestamp without time zone,
|
updated_at timestamp without time zone,
|
||||||
|
@ -5098,3 +5098,5 @@ INSERT INTO schema_migrations (version) VALUES ('20180214200224');
|
||||||
|
|
||||||
INSERT INTO schema_migrations (version) VALUES ('20180214213743');
|
INSERT INTO schema_migrations (version) VALUES ('20180214213743');
|
||||||
|
|
||||||
|
INSERT INTO schema_migrations (version) VALUES ('20180218004148');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue