diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2019-06-24 14:31:56 +0200 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2019-06-24 14:31:56 +0200 |
commit | 79bb43979929bc8dbee9ceee4df6bc03c516f729 (patch) | |
tree | a7d8de2d1bde5869590a138a98743229d013d362 /spec/migrations | |
parent | 79d741508c3d3e165da14366f06e3c0256b72222 (diff) | |
download | gitlab-ce-ab-structure-sql.tar.gz |
CI changes for structure.sqlab-structure-sql
Diffstat (limited to 'spec/migrations')
-rw-r--r-- | spec/migrations/active_record/schema_spec.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/spec/migrations/active_record/schema_spec.rb b/spec/migrations/active_record/schema_spec.rb index 9d35b3cd642..14eb7c5a7d4 100644 --- a/spec/migrations/active_record/schema_spec.rb +++ b/spec/migrations/active_record/schema_spec.rb @@ -13,14 +13,6 @@ describe ActiveRecord::Schema do migrations.map { |migration| File.basename(migration).split('_').first.to_i }.max end - it '> schema version equals last migration timestamp' do - defined_schema_version = File.open(Rails.root.join('db', 'schema.rb')) do |file| - file.find { |line| line =~ /ActiveRecord::Schema.define/ } - end.match(/(\d+)/)[0].to_i - - expect(defined_schema_version).to eq(latest_migration_timestamp) - end - it '> schema version should equal the latest migration timestamp stored in schema_migrations table' do expect(latest_migration_timestamp).to eq(ActiveRecord::Migrator.current_version.to_i) end |