Sha256: 13cbfd1cbdbe5f61c293401783cb8492536b6734613fa2c36e6de3a758880105

Contents?: true

Size: 289 Bytes

Versions: 6

Compression:

Stored size: 289 Bytes

Contents

# frozen_string_literal: true

def activerecord_below_5_2?
  ActiveRecord.version.release() < Gem::Version.new('5.2.0')
end

if activerecord_below_5_2?
  ActiveRecord::Migrator.migrate('test/dummy/db/migrate')
else
  ActiveRecord::MigrationContext.new('test/dummy/db/migrate').migrate
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
ckeditor-5.1.1 test/orm/active_record.rb
glebtv-ckeditor-4.14.1 test/orm/active_record.rb
ckeditor-5.1.0 test/orm/active_record.rb
glebtv-ckeditor-4.13.1 test/orm/active_record.rb
glebtv-ckeditor-4.13.0 test/orm/active_record.rb
ckeditor-5.0.0 test/orm/active_record.rb