aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/fixtures.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Oops, swapped order of params to COALESCE! Upcoming patch has test cases.Jeremy Kemper2005-09-271-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2370 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3613@asus: jeremy | 2005-09-26 22:25:04 -0700Jeremy Kemper2005-09-271-2/+2
| | | | | | | Handle sequence reset for empty tables and models with custom primary keys. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2357 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3569@asus: jeremy | 2005-09-26 05:33:09 -0700Jeremy Kemper2005-09-261-6/+6
| | | | | | | | | | | Ticket 1749 - reset_sequences workaround for non-integer sequences r3570@asus: jeremy | 2005-09-26 08:30:30 -0700 Fixtures.reset_sequences should only reset sequences corresponding to integer primary keys named id. #1749 r3571@asus: jeremy | 2005-09-26 08:31:11 -0700 Update change log. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2343 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* An explicit include ClassInheritableAttributes is no longer needed #1948 ↵David Heinemeier Hansson2005-09-081-2/+0
| | | | | | [Caleb Tennis] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2154 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixtures ignore table name prefix and suffix #1987 [Jakob S]Jamis Buck2005-09-021-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2101 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that Yaml error message in fixtures hid the real error #1623 [Nicholas ↵David Heinemeier Hansson2005-07-061-1/+1
| | | | | | Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1734 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated all references to the old find_first and find_all to use the new ↵David Heinemeier Hansson2005-06-261-3/+3
| | | | | | style #1511 [Marcel Molina] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1520 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document better #1057David Heinemeier Hansson2005-06-181-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1452 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Do not use instantiated fixtures (in general) in tests. Also, support the ↵Jamis Buck2005-06-101-2/+17
| | | | | | use of transactional fixtures by setting the AR_TX_FIXTURES environment variable to "yes". git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1399 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Using transactional fixtures now causes the data to be loaded only once, for ↵Jamis Buck2005-06-031-2/+8
| | | | | | BIG speed improvements git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1384 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added fixture accessors that can be used when fixture instantiation is ↵Jamis Buck2005-06-031-2/+28
| | | | | | disabled, "model_name(:fixture_name)" git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1383 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed PostgreSQL usage of fixtures with regards to public schemas and table ↵David Heinemeier Hansson2005-04-181-2/+2
| | | | | | names with dots #962 [gnuman1@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1206 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that fixtures were being deleted in the same order as inserts causing ↵David Heinemeier Hansson2005-04-181-7/+14
| | | | | | FK errors #890 [andrew.john.peters@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1205 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added quoting of column names for fixtures #997 [jcfischer@gmail.com]David Heinemeier Hansson2005-04-071-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1110 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made eager loading work even moreDavid Heinemeier Hansson2005-04-031-1/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1083 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added with additional settings for working with transactional fixtures and ↵David Heinemeier Hansson2005-03-201-15/+61
| | | | | | pre-loaded test databases #865 [mindel] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@924 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added the possibility of specifying fixtures in multiple calls #816 ↵David Heinemeier Hansson2005-03-171-1/+1
| | | | | | [kim@tinker.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@915 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated wording in YAML error [noradio]David Heinemeier Hansson2005-03-061-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@847 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added transactional fixtures that uses rollback to undo changes to fixtures ↵David Heinemeier Hansson2005-03-061-28/+107
| | | | | | instead of DELETE/INSERT -- it's much faster. See documentation under Fixtures #760 [bitsweat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@846 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Better yaml fixture error #759 [xal]David Heinemeier Hansson2005-03-061-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@845 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed rails_generator to be usable without RubyGems #686 [Cristi BALAN]. ↵David Heinemeier Hansson2005-03-061-2/+0
| | | | | | Moved all active support dependencies into active support git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@838 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved Active Support into its own gemDavid Heinemeier Hansson2005-02-151-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed documentation snafus #575, #576, #577, #585David Heinemeier Hansson2005-02-071-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that the 'fixture :posts' syntax can be used for ↵David Heinemeier Hansson2005-02-071-2/+9
| | | | | | has_and_belongs_to_many fixtures where a model doesn't exist #572 [bitsweat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@524 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Replaced === checks with is_a? checks #502, #82 [Marcel Molina]David Heinemeier Hansson2005-01-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@466 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* New adventures in dependency reloadingDavid Heinemeier Hansson2005-01-161-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@429 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added a db2 adapter that only depends on the Ruby/DB2 bindings ↵David Heinemeier Hansson2005-01-011-1/+1
| | | | | | (http://raa.ruby-lang.org/project/ruby-db2/) #386 [Maik Schmidt]. Converted all the fixtures to YAML style ones. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@303 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added work-around for PostgreSQL and the problem of getting fixtures to be ↵David Heinemeier Hansson2004-12-221-0/+18
| | | | | | created from id 1 on each test case. This only works for auto-incrementing primary keys called "id" for now #359 [Scott Baron] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@257 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated and added more documentationDavid Heinemeier Hansson2004-12-161-36/+42
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@193 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added tree mixin and unit tests for all the mixinsDavid Heinemeier Hansson2004-12-151-2/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@156 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fixtures :models will now also attempt to include the model.rb fileDavid Heinemeier Hansson2004-12-141-0/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@153 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Tidied up Fixtures for better readability and some error checking [bitsweat]David Heinemeier Hansson2004-12-091-36/+49
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@100 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Documentation bugsDavid Heinemeier Hansson2004-12-071-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@59 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added CSV format for fixtures #272 [what-a-day]David Heinemeier Hansson2004-12-071-36/+143
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@55 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed fixtures using primary key fields called something else than "id" #270 ↵David Heinemeier Hansson2004-12-061-1/+1
| | | | | | [dave] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@53 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added reverse order of deleting fixtures, so referential keys can be ↵David Heinemeier Hansson2004-12-011-15/+16
| | | | | | maintained #247 [Tim Bates] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@38 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* InitialDavid Heinemeier Hansson2004-11-241-0/+208
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4 5ecf4fe2-1ee6-0310-87b1-e25e094e27de