lol_dba 1.3.1 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/lol_dba.rb +0 -2
  2. data/lib/lol_dba/version.rb +1 -1
  3. metadata +1 -1
data/lib/lol_dba.rb CHANGED
@@ -120,7 +120,6 @@ EOM
120
120
  composite_keys = [association_foreign_key, foreign_key]
121
121
 
122
122
  @index_migrations[table_name.to_s] += [composite_keys] unless @index_migrations[table_name].include?(composite_keys)
123
- @index_migrations[table_name.to_s] += [composite_keys.reverse] unless @index_migrations[table_name].include?(composite_keys.reverse)
124
123
  when :has_many
125
124
  # has_many tables are threaten by the other side of the relation
126
125
  next unless reflection_options.options[:through]
@@ -155,7 +154,6 @@ EOM
155
154
  next if association_foreign_key.nil?
156
155
  composite_keys = [association_foreign_key.to_s, foreign_key.to_s]
157
156
  @index_migrations[table_name] += [composite_keys] unless @index_migrations[table_name].include?(composite_keys)
158
- @index_migrations[table_name] += [composite_keys.reverse] unless @index_migrations[table_name].include?(composite_keys.reverse)
159
157
  end
160
158
  rescue Exception => e
161
159
  puts "Some errors here:"
@@ -1,3 +1,3 @@
1
1
  module LolDba
2
- VERSION = "1.3.1" unless defined? LolDba::VERSION
2
+ VERSION = "1.4.0" unless defined? LolDba::VERSION
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lol_dba
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: