lib/lhm/sql_helper.rb in lhm-2.1.0 vs lib/lhm/sql_helper.rb in lhm-2.2.0

- old
+ new

@@ -4,27 +4,27 @@ module Lhm module SqlHelper extend self def annotation - "/* large hadron migration */" + '/* large hadron migration */' end def idx_name(table_name, cols) column_names = column_definition(cols).map(&:first) - "index_#{ table_name }_on_#{ column_names.join("_and_") }" + "index_#{ table_name }_on_#{ column_names.join('_and_') }" end def idx_spec(cols) column_definition(cols).map do |name, length| "`#{ name }`#{ length }" end.join(', ') end def version_string row = connection.select_one("show variables like 'version'") - value = struct_key(row, "Value") + value = struct_key(row, 'Value') row[value] end private @@ -69,9 +69,9 @@ struct.keys else struct.members end - keys.find {|k| k.to_s.downcase == key.to_s.downcase } + keys.find { |k| k.to_s.downcase == key.to_s.downcase } end end end