REFACTOR: use tables instead of custom fields for polls (#6359)

Co-authored-by: Guo Xiang Tan <tgx_world@hotmail.com>
This commit is contained in:
Régis Hanol
2018-11-19 14:50:00 +01:00
committed by GitHub
parent 86dafc1f25
commit 4459665dee
37 changed files with 1912 additions and 1573 deletions

View File

@@ -104,7 +104,7 @@ describe Migration::SafeMigrate do
migrate_up(path)
end
expect(output).to include("drop_table(:users)")
expect(output).to include("drop_table(:email_logs)")
end
describe 'for a post deployment migration' do
@@ -112,13 +112,13 @@ describe Migration::SafeMigrate do
user = Fabricate(:user)
Migration::SafeMigrate::SafeMigration.enable_safe!
path = File.expand_path "#{Rails.root}/spec/fixtures/db/post_migrate/drop_table"
path = File.expand_path "#{Rails.root}/spec/fixtures/db/post_migrate"
output = capture_stdout do
migrate_up(path)
end
expect(output).to include("drop_table(:users)")
expect(output).to include("drop_table(:email_logs)")
expect(user.reload).to eq(user)
end
end