Make event summaries not null

We can do this now that the data has been migrated
This commit is contained in:
Jose Farias
2024-10-28 12:33:09 -06:00
parent ed176def10
commit 33afd180a4
2 changed files with 7 additions and 2 deletions
@@ -0,0 +1,5 @@
class MakeEventSummaryNotNull < ActiveRecord::Migration[8.0]
def change
change_column_null :events, :summary_id, false
end
end
Generated
+2 -2
View File
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.0].define(version: 2024_10_25_224942) do
ActiveRecord::Schema[8.0].define(version: 2024_10_28_183212) do
create_table "accesses", force: :cascade do |t|
t.integer "bucket_id", null: false
t.integer "user_id", null: false
@@ -120,7 +120,7 @@ ActiveRecord::Schema[8.0].define(version: 2024_10_25_224942) do
t.string "action", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "summary_id"
t.integer "summary_id", null: false
t.index ["creator_id"], name: "index_events_on_creator_id"
t.index ["summary_id", "action"], name: "index_events_on_summary_id_and_action"
end