From f5f13e10b0d9e8d5f903a44da6c33a597c4833fa Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Sun, 19 Nov 2023 14:18:26 -0800 Subject: [PATCH] non-null titles --- db/migrations/008_non_null_titles.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 db/migrations/008_non_null_titles.rb diff --git a/db/migrations/008_non_null_titles.rb b/db/migrations/008_non_null_titles.rb new file mode 100644 index 0000000..6157c4d --- /dev/null +++ b/db/migrations/008_non_null_titles.rb @@ -0,0 +1,7 @@ +Sequel.migration do + change do + alter_table(:titles) do + set_column_not_null :title + end + end +end