- 21 7月, 2012 1 次提交
-
-
由 Jon Leighton 提交于
-
- 20 7月, 2012 1 次提交
-
-
由 Jon Leighton 提交于
-
- 18 7月, 2012 5 次提交
-
-
由 Dave Kroondyk 提交于
Commit 3dbedd28 added NOT NULL constraints to timestamps. Commit fcef7289 started to revert this, but was incomplete. With this commit, 3dbedd28 should be fully reverted and timestamps will no longer default to NOT NULL.
-
由 John Firebaugh 提交于
Integration's definition of #to_param must override Conversion's. Otherwise, there is a regression from 3.1 in the behavior of a non-persisted AR::Base instance which nevertheless has an id.
-
由 Aleksey Magusev 提交于
For instance, running rails g migration CreateMediaJoinTable artists musics:uniq will create a migration with create_join_table :artists, :musics do |t| # t.index [:artist_id, :music_id] t.index [:music_id, :artist_id], unique: true end
-
由 kennyj 提交于
-
由 kennyj 提交于
-
- 17 7月, 2012 1 次提交
-
-
由 beerlington 提交于
Fixes issue with overrding ActiveRecord reader methods with a composed object and using that attribute as the scope of a validates_uniqueness_of validation.
-
- 15 7月, 2012 1 次提交
-
-
由 kennyj 提交于
-
- 14 7月, 2012 4 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
Conflicts: activerecord/test/cases/query_cache_test.rb
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
- 13 7月, 2012 4 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
- 11 7月, 2012 1 次提交
-
-
由 Robb Kidd 提交于
Dry up reseting the renamed table after each test. Also made use of the AR::Base.connection object already available from AR::MigrationTest#connection.
-
- 07 7月, 2012 3 次提交
-
-
由 Jon Leighton 提交于
-
由 kennyj 提交于
-
由 Damien Mathieu 提交于
While it's interesting to have the results array, it can make a console or a webpage freeze if there are a lot of them. So this limits the number of records displayed in #inspect to 10 and tells how much were effectively found.
-
- 06 7月, 2012 3 次提交
-
-
由 Damir Zekic 提交于
Fixes #867
-
由 Jon Leighton 提交于
The reason for removing the previous implementation of `#inspect` was that it hid from you that you were dealing with a `Relation` rather than an `Array`. But it is still useful to be able to see the records, particularly if you're writing something like the following in tests: assert_equal [foo], Post.where(:bar) If the assertion fails, you want to see what records were actually loaded. So this implementation makes it clear that you've got a `Relation`, but also shows your records.
-
由 Philip Arndt 提交于
-
- 05 7月, 2012 1 次提交
-
-
由 Francesco Rodriguez 提交于
This patch fixes quoting for ActiveSupport::Duration instances: # before >> ActiveRecord::Base.connection.quote 30.minutes => "'--- 1800\n...\n'" # after >> ActiveRecord::Base.connection.quote 30.minutes => "1800" Also, adds a test for type casting ActiveSupport::Duration instances. Related to #1119.
-
- 04 7月, 2012 4 次提交
-
-
由 Aaron Patterson 提交于
Mocha is already required by AS::TestCase, so remove the duplicate requires.
-
由 Aleksey Magusev 提交于
-
由 Aleksey Magusev 提交于
-
由 Aleksey Magusev 提交于
Examples: add_reference :products, :supplier, polymorphic: true, index: true remove_reference :products, :user `add_belongs_to` and `remove_belongs_to` are acceptable.
-
- 03 7月, 2012 1 次提交
-
-
由 kennyj 提交于
-
- 02 7月, 2012 1 次提交
-
-
由 Rafael Mendonça França 提交于
connection.tables returns an array of strings
-
- 01 7月, 2012 3 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Aleksey Magusev 提交于
and create_join_table_test
-
由 Aleksey Magusev 提交于
Also fix failures in check options for nil
-
- 30 6月, 2012 2 次提交
-
-
由 kennyj 提交于
-
由 Brian Cardarella 提交于
-
- 29 6月, 2012 1 次提交
-
-
由 kennyj 提交于
-
- 28 6月, 2012 3 次提交
-
-
由 Carlos Antonio da Silva 提交于
Since composed_of was removed in 05174744, these tests were working "by mistake", due to the matching "address" string in the error message, but with a different error message than the expected multiparameter assignment error. Since "address" is not an attribute from Customer anymore, the error was "undefined method klass for nil", where nil was supposed to be the column object.
-
由 Carlos Antonio da Silva 提交于
All other multiparameter assignment tests are in the same file, so it makes sense to have all of them here.
-
由 Yasuo Honda 提交于
does not have TIME data type.
-