Skip to content

Commit

Permalink
Merge pull request #2397 from internetee/2342-notification-text-lenght
Browse files Browse the repository at this point in the history
Increase notification text field length on database
  • Loading branch information
vohmar authored Sep 29, 2022
2 parents c488085 + fcbbd4b commit e0e9c43
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class ChangeNotificationTextTypeToText < ActiveRecord::Migration[6.1]
def change
change_column :notifications, :text, :text
end
end
3 changes: 2 additions & 1 deletion db/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2203,7 +2203,7 @@ ALTER SEQUENCE public.nameservers_id_seq OWNED BY public.nameservers.id;
CREATE TABLE public.notifications (
id integer NOT NULL,
registrar_id integer NOT NULL,
text character varying NOT NULL,
text text NOT NULL,
attached_obj_type character varying,
attached_obj_id integer,
read boolean NOT NULL,
Expand Down Expand Up @@ -5239,4 +5239,5 @@ INSERT INTO "schema_migrations" (version) VALUES
('20220413084748'),
('20220504090512'),
('20220524130709'),
('20220701113409'),
('20220818075833');

0 comments on commit e0e9c43

Please sign in to comment.