12345678910111213 |
- require 'rails_helper'
- RSpec.describe TechDebt297ThreeStateBoolean, db_strategy: :reset, type: :db_migration do
- it 'migrates users.vip' do
- change_column_null :users, :vip, true
- user = create(:user, vip: nil)
- expect { migrate }.to change { user.reload.vip }.from(nil).to(false)
- end
- end
|