Sha256: bb9a7678f8fe7eb0b494596c2194479d98ab5db8338f6fad920de039787fd1a9

Contents?: true

Size: 274 Bytes

Versions: 61

Compression:

Stored size: 274 Bytes

Contents

module PactBroker
  module DB
    module DataMigrations
      module Helpers
        def column_exists?(connection, table, column)
          connection.table_exists?(table) && connection.schema(table).find{|col| col.first == column }
        end
      end
    end
  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
pact_broker-2.49.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.48.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.47.1 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.47.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.46.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.45.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.44.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.43.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.42.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.41.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.40.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.39.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.38.1 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.38.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.37.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.36.1 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.36.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.35.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.34.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.33.0 lib/pact_broker/db/data_migrations/helpers.rb