Skip to content

Commit fb23244

Browse files
committed
rubocop fixes
1 parent 239aaa7 commit fb23244

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

db/migrate/20251226185531_create_new_thread_followers.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def up
88
end
99

1010
def down
11-
if !column_exists?(:thread_followers, :post_id)
11+
unless column_exists?(:thread_followers, :post_id)
1212
add_post_id_column_to_thread_followers
1313
end
1414
move_rows_back_from_new_thread_followers
@@ -29,11 +29,11 @@ def create_table_new_thread_followers
2929
def move_rows_with_non_nil_post_id
3030
NewThreadFollower.insert_all(
3131
ThreadFollower.select(:user_id, :post_id, :created_at, :updated_at)
32-
.where.not(post_id:nil)
32+
.where.not(post_id: nil)
3333
.to_a
3434
.map(&:attributes)
3535
)
36-
ThreadFollower.where.not(post_id:nil).delete_all
36+
ThreadFollower.where.not(post_id: nil).delete_all
3737
end
3838

3939
def remove_post_id_column_from_thread_followers

0 commit comments

Comments
 (0)