Do not allow NULL in epp_sessions.session_id

#700
This commit is contained in:
Artur Beljajev 2018-02-06 23:36:50 +02:00
parent 04ea3d506c
commit 34f7820300
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class ChangeEppSessionsSessionIdToNotNull < ActiveRecord::Migration
def change
change_column_null :epp_sessions, :session_id, false
end
end

View file

@ -1050,7 +1050,7 @@ ALTER SEQUENCE domains_id_seq OWNED BY domains.id;
CREATE TABLE epp_sessions (
id integer NOT NULL,
session_id character varying,
session_id character varying NOT NULL,
data text,
created_at timestamp without time zone,
updated_at timestamp without time zone,
@ -5070,3 +5070,5 @@ INSERT INTO schema_migrations (version) VALUES ('20180126104536');
INSERT INTO schema_migrations (version) VALUES ('20180126104903');
INSERT INTO schema_migrations (version) VALUES ('20180206213435');