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.
- data/lib/lol_dba.rb +0 -2
- data/lib/lol_dba/version.rb +1 -1
- 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:"
|
data/lib/lol_dba/version.rb
CHANGED