Skip to content

Commit

Permalink
Do not allow NULL in epp_sessions.session_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Beljajev committed Feb 6, 2018
1 parent 04ea3d5 commit 34f7820
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class ChangeEppSessionsSessionIdToNotNull < ActiveRecord::Migration
def change
change_column_null :epp_sessions, :session_id, false
end
end
4 changes: 3 additions & 1 deletion db/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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');

0 comments on commit 34f7820

Please sign in to comment.