Skip to content

Commit

Permalink
clean up trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ronen committed Feb 13, 2015
1 parent d87d865 commit 0bc9ac0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ The value gets cached until the next time `Model.reset_column_information` is ca

* When using SQLite3, makes sure that the definitions returned by
`connection.indexes` properly include the column orders (`:asc` or `:desc`)

* For the `ActiveRecord::ConnectionAdapters::IndexDefinition` class (the object that's returned by `connection.indexes`), SchemaPlus::Indexes:
* Provides an `==` operator to compare if two objects refer to an equivalent index
* Allows calling `new` with a signature that matches add_index: `IndexDefinition.new(table_name, column_names, options)`
Expand Down Expand Up @@ -156,7 +156,7 @@ Some things to know about to help you develop and test:
ActiveRecord's behavior. If that API is missing something you need for
your contribution, please head over to
[schema_plus_core](https://github/SchemaPlus/schema_plus_core) and open
an issue or pull request.
an issue or pull request.

<!-- SCHEMA_DEV: TEMPLATE USES SCHEMA_PLUS_CORE - end -->
<!-- SCHEMA_DEV: TEMPLATE USES SCHEMA_MONKEY - begin -->
Expand Down
4 changes: 2 additions & 2 deletions lib/schema_plus/indexes/middleware/dumper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ def after(env)
# list of indexes that AR would dump after the table. Any left
# over will still be dumped by AR.
env.table.columns.each do |column|

# first check for a single-column index
if (index = env.table.indexes.find(&its.columns == [column.name]))
column.add_option column_index(env, column, index)
env.table.indexes.delete(index)

# then check for the first of a multi-column index
elsif (index = env.table.indexes.find(&its.columns.first == column.name))
column.add_option column_index(env, column, index)
Expand Down
2 changes: 1 addition & 1 deletion lib/schema_plus/indexes/middleware/migration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Middleware
module Migration

module Column

# Shortcuts
def before(env)
case env.options[:index]
Expand Down

0 comments on commit 0bc9ac0

Please sign in to comment.