Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
11 lines (10 sloc) 236 Bytes
ARGF.each_line.grep(/add_index/) do |index_statement|
puts <<EOS
begin
ActiveRecord::Base.connection.#{index_statement.strip}
puts 'Created index ' + %q{#{index_statement.split[4]}}
rescue ArgumentError => e
puts e
end
EOS
end
You can’t perform that action at this time.