Sha256: d9715d0f693db95cceb1790357a5e1d2f715b89a599f859edf356556aa4e7199
Contents?: true
Size: 386 Bytes
Versions: 12
Compression:
Stored size: 386 Bytes
Contents
include SpatialAdapter ActiveRecord::ConnectionAdapters::TableDefinition.class_eval do SpatialAdapter.geometry_data_types.keys.each do |column_type| class_eval <<-EOV def #{column_type}(*args) options = args.extract_options! column_names = args column_names.each { |name| column(name, '#{column_type}', options) } end EOV end end
Version data entries
12 entries across 12 versions & 4 rubygems