Skip to content

Commit

Permalink
FIX: Default .is_read false for new stories
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyoung214 committed Mar 13, 2024
1 parent c83f8c2 commit 44b8825
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions db/migrate/20240313195404_add_default_to_stories.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddDefaultToStories < ActiveRecord::Migration[7.1]
def change
change_column_default :stories, :is_read, from: nil, to: false
end
end
4 changes: 2 additions & 2 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 44b8825

Please sign in to comment.