瀏覽代碼

Fix old migration script depending on the StreamEntry model (#11278)

ThibG 4 年之前
父節點
當前提交
27ad4c1501
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      db/migrate/20180528141303_fix_accounts_unique_index.rb

+ 5 - 0
db/migrate/20180528141303_fix_accounts_unique_index.rb

@@ -12,6 +12,11 @@ class FixAccountsUniqueIndex < ActiveRecord::Migration[5.2]
     end
   end
 
+  class StreamEntry < ApplicationRecord
+    # Dummy class, to make migration possible across version changes
+    belongs_to :account, inverse_of: :stream_entries
+  end
+
   disable_ddl_transaction!
 
   def up