Skip to content

Commit

Permalink
Fix NoMethodError in db/schema.rb when dumping tables with spatial in…
Browse files Browse the repository at this point in the history
…dexes
  • Loading branch information
dschweisguth committed Aug 26, 2016
1 parent 0935207 commit eced87f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -124,7 +124,7 @@ def indexes(table_name_, name_=nil)
if current_index_ != row_[:Key_name]
next if row_[:Key_name] == 'PRIMARY' # skip the primary key
current_index_ = row_[:Key_name]
indexes_ << ::RGeo::ActiveRecord::SpatialIndexDefinition.new(row_[:Table], row_[:Key_name], row_[:Non_unique] == 0, [], [], row_[:Index_type] == 'SPATIAL')
indexes_ << ::RGeo::ActiveRecord::SpatialIndexDefinition.new(row_[:Table], row_[:Key_name], row_[:Non_unique] == 0, [], [], [], nil, row_[:Index_type] == 'SPATIAL')
end
last_index_ = indexes_.last
last_index_.columns << row_[:Column_name]
Expand Down

0 comments on commit eced87f

Please sign in to comment.