mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
truncation for activerecord oracle_enhanced adapter
This commit is contained in:
parent
10f7546388
commit
9606c0d8e4
1 changed files with 6 additions and 0 deletions
|
@ -33,6 +33,12 @@ module ActiveRecord
|
|||
end
|
||||
end
|
||||
|
||||
class OracleEnhancedAdapter
|
||||
def truncate_table(table_name)
|
||||
execute("TRUNCATE TABLE #{quote_table_name(table_name)}")
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue