- 23 12月, 2014 9 次提交
-
-
由 Sean Griffin 提交于
Rather than having to do: create_table :posts do |t| t.references :user end add_foreign_key :posts, :users You can instead do: create_table :posts do |t| t.references :user, foreign_key: true end Similar to the `index` option, you can also pass a hash. This will be passed as the options to `add_foreign_key`. e.g.: create_table :posts do |t| t.references :user, foreign_key: { primary_key: :other_id } end is equivalent to create_table :posts do |t| t.references :user end add_foreign_key :posts, :users, primary_key: :other_id
-
由 Sean Griffin 提交于
While we aren't taking PRs with these kinds of changes just yet, they are fine if we're actively working on the method and it makes things easier.
-
由 Sean Griffin 提交于
The changes in #18149 added tests for the app generator, but only fixed it for the plugin generator (I should have let CI finish though I think it would have failed as an allowed failure).
-
由 Sean Griffin 提交于
Only add debugger/byebug if on MRI
-
由 Arthur Neves 提交于
-
由 Sean Griffin 提交于
If the test is interrupted in a way that the teardown block fails to run, the tests will fail to run until the table is removed manually without this option.
-
由 Sean Griffin 提交于
PG doesn't register it's types using the `int(4)` format that others do. As such, if we alias `int8` to the other integer types, the range information is lost. This is fixed by simply registering it separately. The other option (which I specifically chose to avoid) is to pass the information of the original type that was being aliased as an argument. I'd rather avoid that, since an alias should truly be treated the same. If we need different behavior for a different type, we should explicitly register it with that, and not have a conditional based on aliasing. Fixes #18144 [Sean Griffin & ysbaddaden]
-
由 Zachary Scott 提交于
-
由 Zachary Scott 提交于
-
- 22 12月, 2014 31 次提交
-
-
由 Arthur Neves 提交于
-
由 Arthur Neves 提交于
-
由 Zachary Scott 提交于
-
由 Zachary Scott 提交于
-
由 Zachary Scott 提交于
-
由 Zachary Scott 提交于
-
由 Yves Senn 提交于
This is a doc follow-up to #17739. /cc @zzak
-
由 Sean Griffin 提交于
Fixes #18122
-
由 Zachary Scott 提交于
Fix inaccurate docs in active_model errors [ci skip]
-
由 Zachary Scott 提交于
-
由 Zachary Scott 提交于
Add note about Ajax and CSRF-Token [ci skip]
-
由 Zachary Scott 提交于
Clarify ActiveRecord testing guidelines [ci skip]
-
由 Zachary Scott 提交于
`bin/rake` does not exist in plugin directory [ci skip]
-
由 Zachary Scott 提交于
-
由 Zachary Scott 提交于
-
由 Zachary Scott 提交于
[ci skip]
-
由 Zachary Scott 提交于
-
由 Zachary Scott 提交于
[ci skip]
-
由 Zachary Scott 提交于
-
由 Zachary Scott 提交于
-
由 Robson Marques 提交于
The default value for the argument `message` in `ActiveModel::Errors#add` has a new behavior since ca99ab24. Before person.errors.add(:name, nil) # => ["is invalid"] After person.errors.add(:name, nil) # => [nil]
-
由 Yves Senn 提交于
Fix typo in nodoc [ci skip]
-
由 rochefort 提交于
-
由 yuuji.yaginuma 提交于
-
由 Guillermo Iguaran 提交于
Remove unused Sheep fixture from AV
-
由 Xavier Noria 提交于
Remove extra bullet in README.md [ci skip]
-
由 Decagon 提交于
-
由 Carlos Antonio da Silva 提交于
Validation test fixes
-
由 Sean Griffin 提交于
Add 'require' for Hash#with_indifferent_access to active_job/arguments.rb
-
由 Sammy Larbi 提交于
1. Specify that you need to create the test databases, and that no special Rails command needs to be run to do that. 2. Although the underscore style of `rake test_mysql` works, make the documentation of running the tests in RUNNING_UNIT_TESTS.rdoc consistent with the "Contributing..." guide. 3. Promote "Testing Active Record" to not be a subsection of "Running a Single Test," since it doesn't make sense as a subsection of that.
-