aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema/schema.rb
Commit message (Collapse)AuthorAgeFilesLines
* fix assignment to has_one :through associations.Matt Jones2008-11-151-0/+10
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* coerce blank strings to nil values for boolean and integer fieldsJosh Susser2008-08-221-1/+1
| | | | [#860 state:resolved]
* update_counters should update nil values.miloops2008-07-151-0/+1
| | | | | | This allows counter columns with default null instead of requiring default 0. [#493 state:resolved]
* Add has_many :primary_key option to allow setting the primary key on a has ↵Andre Arko2008-07-061-0/+1
| | | | | | many association Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Always treat integer :limit as byte length. [#420 state:resolved]Tarmo Tänav2008-06-221-0/+7
|
* Fix validates_uniqueness_of for SQL keywords [#23 state:resolved]Alex MacCaw2008-05-111-0/+4
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fixed AssociationsPreload such that it doesnt require foreign keys to be ↵David Heinemeier Hansson2008-04-301-0/+5
| | | | integers (fcheung) [#33 state:resolved]
* Fixed that pessimistic locking you reference the quoted table name (Josh ↵David Heinemeier Hansson2008-04-301-0/+1
| | | | Susser) [#67 state:resolved]
* Ensure table names are quoted by the association preloading code.Frederick Cheung2008-04-261-0/+11
| | | | | | [#45 state:resolved] Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Use schema.rb for all databasesFrederick Cheung2008-04-221-301/+274
| | | | | | Move adapter specific schema into their own files Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Fix schema.rb some more. sponsors.sponsorable_type should be a string. ↵Jeremy Kemper2008-03-211-1/+1
| | | | | | References #4756. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9073 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix schema.rb. Please to be testing on more than just MySQL! References #9067.Jeremy Kemper2008-03-211-24/+24
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9072 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add has_one :through support, finally. Closes #4756 [thechrisoshow]Rick Olson2008-03-211-0/+21
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9067 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make the mysql schema dumper roundtrip the limits of text/blob columns. ↵Michael Koziarski2008-03-021-0/+11
| | | | | | Closes #7424 [will.bryant] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8969 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move the eager load nested include tables into schema.rb and use delete_all ↵Michael Koziarski2008-02-201-0/+19
| | | | | | instead of drop table to reset the state. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8914 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix has_many :through a polymorphic has_many. Closes #10529 [Aleksey ↵Jeremy Kemper2008-02-021-0/+6
| | | | | | Kondratenko] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8776 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed preloading belongs_to associations which reference a custom foreign ↵Jeremy Kemper2008-01-311-0/+9
| | | | | | key. References #9640. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8762 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add posts.comments_count for other databases. Closes #10804.Jeremy Kemper2008-01-281-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8745 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure that belongs_to counter decrements when assigning nil Closes ↵Michael Koziarski2008-01-261-0/+1
| | | | | | #10804 [jeanmartin] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8735 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* belongs_to supports :dependent => :destroy and :delete. Closes #10592.Jeremy Kemper2008-01-191-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8675 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* move schemaJeremy Kemper2008-01-181-0/+358
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8659 5ecf4fe2-1ee6-0310-87b1-e25e094e27de