Commit graph

16 commits

Author SHA1 Message Date
Sebastian Skałacki
6c59ff2bac Drop Postgres database with AR connection
1. Works faster than issuing shell commands.
2. Attempts to drop the database before creating it.  This fixes some
ugly test output which warns that given database already exists.
2016-03-31 03:20:06 +02:00
Ernesto Tagwerker
0f880bc03e Corrected drop statement. 2015-02-21 19:33:31 -03:00
Ernesto Tagwerker
875e81e9e7 Merge pull request #338 from jonallured/passing
Don't truncate the schema_migrations table
2015-02-08 23:06:55 -03:00
Kostas Karachalios
c38119c6f9 Fix default arguments in method definitions for ruby 2.2 2015-01-13 11:10:46 +01:00
Jon Allured
04c263e48c Don't truncate the schema_migrations table 2015-01-09 16:30:13 -06:00
Jon Rowe
3b109a1ca8 Merge pull request #283 from Strech/master
PostgreSQL truncation for tables without sequence
2015-01-02 23:13:33 +11:00
Jon Rowe
bd1ee00b36 cleanup post #279 2014-12-06 09:58:41 +11:00
Strech (Sergey Fedorov)
e6717b9449 Specs for table truncation without id seq 2014-07-30 12:31:18 +06:00
Josh Lane
0154277dc4 make specs play well together 2014-06-25 13:11:20 -07:00
Josh Lane
0a66461050 fix datamapper sqlite adapter truncation 2014-06-24 15:27:15 -07:00
Rob Hunter
307f1ca4ce make existing YAML dependency explicit
(the ActiveRecord tests always have YAML loaded already,
but what about when you're not running the ActiveRecord
tests?)
2014-03-05 12:08:41 +11:00
chrismo
3cf6d8291d Add truncate_tables method to SQLiteAdapter.
Without this, the PostgreSQLAdapter truncate_tables method would be
called and go kerblooie cuz t'ain't no PostgreSQL database in play.
2013-09-26 17:04:56 -05:00
Tom Meier
9bf038d5c2 Fix MySqlAdapter superclass bug via class_eval loading of superclasses 2013-05-15 16:51:21 +10:00
stanislaw
6a80e36cf6 ActiveRecord: autocreation of databases 2012-08-04 19:05:26 -06:00
stanislaw
d8be115e92 Improvements for spec/support/active_record
- All adapters rely on db/config.yml configuration
- All adapters load the same schema
2012-08-04 19:05:26 -06:00
stanislaw
e2b5086d47 Fast truncation strategy for ActiveRecord with mysql, mysql2 or pg 2012-08-04 18:55:27 -06:00