mirror of
https://github.com/internetee/registry.git
synced 2025-06-12 07:34:45 +02:00
Eliminate three-state boolean
This commit is contained in:
parent
7ccd662d60
commit
cc0a6c229f
2 changed files with 8 additions and 1 deletions
|
@ -0,0 +1,5 @@
|
||||||
|
class ChangeNotificationsReadToNotNull < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
change_column_null :notifications, :read, false
|
||||||
|
end
|
||||||
|
end
|
|
@ -2002,7 +2002,7 @@ CREATE TABLE public.notifications (
|
||||||
text character varying NOT NULL,
|
text character varying NOT NULL,
|
||||||
attached_obj_type character varying,
|
attached_obj_type character varying,
|
||||||
attached_obj_id integer,
|
attached_obj_id integer,
|
||||||
read boolean,
|
read boolean NOT NULL,
|
||||||
created_at timestamp without time zone,
|
created_at timestamp without time zone,
|
||||||
updated_at timestamp without time zone,
|
updated_at timestamp without time zone,
|
||||||
creator_str character varying,
|
creator_str character varying,
|
||||||
|
@ -4767,3 +4767,5 @@ INSERT INTO schema_migrations (version) VALUES ('20180823174331');
|
||||||
|
|
||||||
INSERT INTO schema_migrations (version) VALUES ('20180823212823');
|
INSERT INTO schema_migrations (version) VALUES ('20180823212823');
|
||||||
|
|
||||||
|
INSERT INTO schema_migrations (version) VALUES ('20180824102834');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue