Skip to content

Commit

Permalink
fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
HaiTo committed Mar 11, 2015
1 parent a815717 commit d08b2df
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/database_cleaner/active_record/truncation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ def tables_with_schema
rows = select_rows <<-_SQL
SELECT schemaname || '.' || tablename
FROM pg_tables
WHERE
tablename !~ '_prt_' AND
tablename <> '#{::ActiveRecord::Migrator.schema_migrations_table_name}' AND
WHERE
tablename !~ '_prt_' AND
tablename <> '#{::ActiveRecord::Migrator.schema_migrations_table_name}' AND
schemaname = ANY (current_schemas(false))
_SQL
rows.collect { |result| result.first }
Expand Down Expand Up @@ -247,12 +247,12 @@ def tables_to_truncate(connection)
tables_in_db = cache_tables? ? connection.database_cleaner_table_cache : connection.tables
to_reject = (@tables_to_exclude + connection.database_cleaner_view_cache)
(@only || tables_in_db).reject do |table|
if ( m = table.match(/([^.]+)$/) )
to_reject.include?(m[1])
else
false
end
if ( m = table.match(/([^.]+)$/) )
to_reject.include?(m[1])
else
false
end
end
end

# overwritten
Expand Down

0 comments on commit d08b2df

Please sign in to comment.