Sha256: a770191c4a6e6e26ff0fb7a24646ceefa3892f8e267a00e69f9c83294211f9d8

Contents?: true

Size: 394 Bytes

Versions: 2

Compression:

Stored size: 394 Bytes

Contents

module Hypershield
  module Migration
    def method_missing(method, *args)
      if [
        :change_column, :drop_table, :remove_column, :remove_columns,
        :remove_timestamps, :rename_column, :rename_table
      ].include?(method)
        Hypershield.drop_view(args[0])
      end

      super
    end
    ruby2_keywords(:method_missing) if respond_to?(:ruby2_keywords, true)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hypershield-0.3.0 lib/hypershield/migration.rb
hypershield-0.2.2 lib/hypershield/migration.rb