diff --git a/db/migrate/20180213183818_change_epp_sessions_user_id_to_not_null.rb b/db/migrate/20180213183818_change_epp_sessions_user_id_to_not_null.rb new file mode 100644 index 000000000..fbe685b33 --- /dev/null +++ b/db/migrate/20180213183818_change_epp_sessions_user_id_to_not_null.rb @@ -0,0 +1,5 @@ +class ChangeEppSessionsUserIdToNotNull < ActiveRecord::Migration + def change + change_column_null :epp_sessions, :user_id, false + end +end diff --git a/db/structure.sql b/db/structure.sql index e743e42f6..449ec44f8 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -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'); +