Sha256: 48c8ae359a0f91f7be2e928b40ea6bb06b74a3cb4e1d7126c78966d0e6a45c50

Contents?: true

Size: 320 Bytes

Versions: 3

Compression:

Stored size: 320 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
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hypershield-0.2.0 lib/hypershield/migration.rb
hypershield-0.1.1 lib/hypershield/migration.rb
hypershield-0.1.0 lib/hypershield/migration.rb