findex 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/README.markdown +1 -1
  2. data/VERSION +1 -1
  3. data/lib/findex/tasks.rb +1 -1
  4. metadata +2 -2
data/README.markdown CHANGED
@@ -3,7 +3,7 @@
3
3
  Findex is a simple collection of Rake tasks that will help you locate missing database indexes in your Rails app.
4
4
  It can also generate migrations and run them, as well as filter by specific column types, names, and tables.
5
5
 
6
- **Please note** that Findex designed to find any potentially overlooked indexes. It is not a good practice to index every matching column Findex returns -
6
+ **Please note** that Findex is designed to find any potentially overlooked indexes. It is not a good practice to index every matching column Findex returns -
7
7
  that's often overkill.
8
8
 
9
9
  ## Installation ##
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
data/lib/findex/tasks.rb CHANGED
@@ -140,7 +140,7 @@ class Findex
140
140
  next if @tables && !@tables.include?(model.table_name.to_s)
141
141
  begin
142
142
  # Check for views... expected to fail.
143
- Applicant.connection.execute("SHOW CREATE VIEW #{model.table_name}")
143
+ ActiveRecord::Base.connection.execute("SHOW CREATE VIEW #{model.table_name}")
144
144
  rescue ActiveRecord::StatementInvalid
145
145
  existing_indices = connection.indexes(model.table_name).map{|index| index.columns.length == 1 ? index.columns.first.to_sym : index.columns.map(&:to_sym) }
146
146
  args.each do |method, options|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: findex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flip Sasser
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-03-10 00:00:00 -05:00
12
+ date: 2010-03-16 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15