mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Remove #compress_lines call - it isn't required and isn't provided as a core extension anymore by DataMapper as of 1.1.
This commit is contained in:
parent
41602da900
commit
8d767927e9
1 changed files with 3 additions and 3 deletions
|
@ -42,7 +42,7 @@ module DataMapper
|
|||
# taken from http://github.com/godfat/dm-mapping/tree/master
|
||||
def storage_names(repository = :default)
|
||||
# activerecord-2.1.0/lib/active_record/connection_adapters/sqlite_adapter.rb: 177
|
||||
sql = <<-SQL.compress_lines
|
||||
sql = <<-SQL
|
||||
SELECT name
|
||||
FROM sqlite_master
|
||||
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
||||
|
@ -68,7 +68,7 @@ module DataMapper
|
|||
# taken from http://github.com/godfat/dm-mapping/tree/master
|
||||
def storage_names(repository = :default)
|
||||
# activerecord-2.1.0/lib/active_record/connection_adapters/sqlite_adapter.rb: 177
|
||||
sql = <<-SQL.compress_lines
|
||||
sql = <<-SQL
|
||||
SELECT name
|
||||
FROM sqlite_master
|
||||
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
||||
|
@ -99,7 +99,7 @@ module DataMapper
|
|||
|
||||
# taken from http://github.com/godfat/dm-mapping/tree/master
|
||||
def storage_names(repository = :default)
|
||||
sql = <<-SQL.compress_lines
|
||||
sql = <<-SQL
|
||||
SELECT table_name FROM "information_schema"."tables"
|
||||
WHERE table_schema = current_schema() and table_type = 'BASE TABLE'
|
||||
SQL
|
||||
|
|
Loading…
Reference in a new issue