Sha256: 4dc50699fe4cac03fe6ca0e962ffdcd76cfb221ead1c7faebe1e25e8b7a55d74

Contents?: true

Size: 331 Bytes

Versions: 1

Compression:

Stored size: 331 Bytes

Contents

module Hypershield
  module Migration
    def method_missing(method, *args, **options)
      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
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hypershield-0.2.1 lib/hypershield/migration.rb