Skip to content

Commit

Permalink
[fixup][#3821] page's file suddenly removed when inquiry answer is re…
Browse files Browse the repository at this point in the history
…moved (#3819)
  • Loading branch information
sunny4381 committed Jan 18, 2021
1 parent 9ed49b5 commit f6b9f8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
@@ -1,7 +1,7 @@
class SS::Migration20210107000000
class SS::Migration20200630000001
include SS::Migration::Base

depends_on "20201204000000"
depends_on "20200630000000"

def change
each_file do |file|
Expand Down
4 changes: 2 additions & 2 deletions spec/lib/migrations/cms/20210107000000_fix_file_model_spec.rb
@@ -1,7 +1,7 @@
require 'spec_helper'
require Rails.root.join("lib/migrations/cms/20210107000000_fix_file_model.rb")
require Rails.root.join("lib/migrations/cms/20200630000001_fix_file_model.rb")

RSpec.describe SS::Migration20210107000000, dbscope: :example do
RSpec.describe SS::Migration20200630000001, dbscope: :example do
let!(:page) { create :cms_page }
# 正常なページに添付されたファイル
let!(:file1) { tmp_ss_file(contents: '0123456789', user: cms_user, owner_item: page, model: "cms/page") }
Expand Down

0 comments on commit f6b9f8f

Please sign in to comment.