mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Fix all the errors to get our tests green on Rails 5.1.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
class FixIndexOnPostActions < ActiveRecord::Migration
|
||||
class FixIndexOnPostActions < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
execute 'UPDATE post_actions SET targets_topic = false WHERE targets_topic IS NULL'
|
||||
change_column :post_actions, :targets_topic, :boolean, default: false, null: false
|
||||
|
||||
Reference in New Issue
Block a user