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

Version Path
ridgepole-0.7.1 spec/mysql/migrate/migrate_change_column7_spec.rb
ridgepole-0.7.1.beta5 spec/mysql/migrate/migrate_change_column7_spec.rb
ridgepole-0.7.1.beta4 spec/mysql/migrate/migrate_change_column7_spec.rb
ridgepole-0.7.1.beta3 spec/mysql/migrate/migrate_change_column7_spec.rb
ridgepole-0.7.1.beta2 spec/mysql/migrate/migrate_change_column7_spec.rb
ridgepole-0.7.1.beta spec/mysql/migrate/migrate_change_column7_spec.rb
ridgepole-0.7.0 spec/mysql/migrate/migrate_change_column7_spec.rb
ridgepole-0.7.0.rc1 spec/mysql/migrate/migrate_change_column7_spec.rb
ridgepole-0.7.0.beta22 spec/mysql/migrate/migrate_change_column7_spec.rb
ridgepole-0.7.0.beta21 spec/mysql/migrate/migrate_change_column7_spec.rb
ridgepole-0.7.0.beta20 spec/mysql/migrate/migrate_change_column7_spec.rb
ridgepole-0.7.0.beta19 spec/mysql/migrate/migrate_change_column7_spec.rb
ridgepole-0.7.0.beta18 spec/mysql/migrate/migrate_change_column7_spec.rb
ridgepole-0.7.0.beta17 spec/mysql/migrate/migrate_change_column7_spec.rb
ridgepole-0.7.0.beta16 spec/mysql/migrate/migrate_change_column7_spec.rb
ridgepole-0.7.0.beta15 spec/mysql/migrate/migrate_change_column7_spec.rb
ridgepole-0.7.0.beta14 spec/mysql/migrate/migrate_change_column7_spec.rb
ridgepole-0.7.0.beta13 spec/mysql/migrate/migrate_change_column7_spec.rb