Sha256: 2689a078f3fd9d24416ded218594f24456afb434f57f2ca86c1004df66ef6b1f
Contents?: true
Size: 678 Bytes
Versions: 18
Compression:
Stored size: 678 Bytes
Contents
describe 'Ridgepole::Client#diff -> migrate' do context 'integer/limit:8 = bigint' do let(:dsl) { erbh(<<-EOS) create_table "salaries", id: false, force: :cascade do |t| t.integer "emp_no", limit: 8, null: false t.float "salary", limit: 24, null: false t.date "from_date", null: false t.date "to_date", null: false end EOS } before { subject.diff(dsl).migrate } subject { client } it { expect(subject.dump).to match_fuzzy dsl.sub(/t.integer "emp_no", limit: 8/, 't.bigint "emp_no"') delta = subject.diff(dsl) expect(delta.differ?).to be_falsey } end end
Version data entries
18 entries across 18 versions & 1 rubygems