FIX: Make migrations work with Discourse stable

FIX: Make migrations work with Discourse stable

diff --git a/db/migrate/20191013212445_migrate_policy_users_table.rb b/db/migrate/20191013212445_migrate_policy_users_table.rb
index dd7d33c..8cddde9 100644
--- a/db/migrate/20191013212445_migrate_policy_users_table.rb
+++ b/db/migrate/20191013212445_migrate_policy_users_table.rb
@@ -1,6 +1,6 @@
 # frozen_string_literal: true
 
-class MigratePolicyUsersTable < ActiveRecord::Migration[6.0]
+class MigratePolicyUsersTable < ActiveRecord::Migration[5.2]
   def change
     create_table :policy_users do |t|
       t.integer :post_policy_id, null: false
diff --git a/db/post_migrate/20191014224419_migrate_custom_field_to_policy_users.rb b/db/post_migrate/20191014224419_migrate_custom_field_to_policy_users.rb
index cfea11d..86a22e9 100644
--- a/db/post_migrate/20191014224419_migrate_custom_field_to_policy_users.rb
+++ b/db/post_migrate/20191014224419_migrate_custom_field_to_policy_users.rb
@@ -1,6 +1,6 @@
 # frozen_string_literal: true
 
-class MigrateCustomFieldToPolicyUsers < ActiveRecord::Migration[6.0]
+class MigrateCustomFieldToPolicyUsers < ActiveRecord::Migration[5.2]
   def up
     execute(<<~SQL)
     INSERT INTO policy_users(post_policy_id, user_id, version, accepted_at, created_at, updated_at)

GitHub sha: 94635bf2

1 Like