Add NOT NULL constraint

#700
This commit is contained in:
Artur Beljajev 2018-02-13 20:45:30 +02:00
parent 3c274ba8d4
commit 1f66f1323a
2 changed files with 8 additions and 1 deletions

View file

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

View file

@ -1053,7 +1053,7 @@ CREATE TABLE epp_sessions (
session_id character varying NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone,
user_id integer
user_id integer NOT NULL
);
@ -5092,3 +5092,5 @@ INSERT INTO schema_migrations (version) VALUES ('20180212152810');
INSERT INTO schema_migrations (version) VALUES ('20180212154731');
INSERT INTO schema_migrations (version) VALUES ('20180213183818');