- 03 5月, 2014 1 次提交
-
-
由 James Coleman 提交于
-
- 02 5月, 2014 1 次提交
-
-
由 Robin Dupret 提交于
-
- 01 5月, 2014 3 次提交
-
-
由 Eric Chahin 提交于
associations were not being saved. Fixes #13854. [Eric Chahin, Aaron Nelson, & Kevin Casey]
-
由 Hector Satre 提交于
-
由 Paul Nikitochkin 提交于
For mysql2/mysql adapters, `sql_mode` variable name set in `database.yml` as string, was ignored and `sql_mode` was set to use strict mode. Fixes #14895
-
- 26 4月, 2014 1 次提交
-
-
由 Kassio Borges 提交于
When used a custom join_table name on a habtm, rails was not saving it on Reflections. This causes a problem when rails loads fixtures, because it uses the reflections to set database with fixtures.
-
- 25 4月, 2014 2 次提交
-
-
由 Yves Senn 提交于
/cc @tenderlove
-
由 Jefferson Lai 提交于
The PG Adapter should use `:datetime` consistently instead of mapping mispellings to `:timestamp`. See #14513
-
- 24 4月, 2014 1 次提交
-
-
由 Lucas Mazza 提交于
Closes #14841.
-
- 23 4月, 2014 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 19 4月, 2014 1 次提交
-
-
由 Kuldeep Aggarwal 提交于
-
- 18 4月, 2014 1 次提交
-
-
由 Arthur Neves 提交于
Also add a Changelog entry [related #9702] [fixes #8928]
-
- 16 4月, 2014 3 次提交
-
-
由 Eric Chahin 提交于
Changed the NullRelation so that when count is called with #group it will properly return an empty hash instead of zero. Fixes issue #14721 Conflicts: activerecord/CHANGELOG.md
-
由 Rob Gilson 提交于
Closes #14222. This is a follow up to #6104 This does not have the backwards compatibility issues brought up in implementation to break.
-
由 Rafael Mendonça França 提交于
-
- 13 4月, 2014 1 次提交
-
-
由 Robin Dupret 提交于
-
- 12 4月, 2014 2 次提交
-
-
由 Lauro Caetano 提交于
Example: author.posts == Post.where(author_id: author.id) # => true Post.where(author_id: author.id) == author.posts # => true Fixes #13506
-
由 Rafael Mendonça França 提交于
-
- 11 4月, 2014 3 次提交
-
-
由 Yves Senn 提交于
[Yves Senn & Matthew Draper]
-
由 Yves Senn 提交于
[Yves Senn & Matthew Draper]
-
由 Simon Woker 提交于
-
- 07 4月, 2014 1 次提交
-
-
由 Evan Whalen 提交于
-
- 05 4月, 2014 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 04 4月, 2014 2 次提交
-
-
由 Yves Senn 提交于
There is no reason for the PG adapter to have a default limit of 255 on :string columns. See this snippet from the PG docs: Tip: There is no performance difference among these three types, apart from increased storage space when using the blank-padded type, and a few extra CPU cycles to check the length when storing into a length-constrained column. While character(n) has performance advantages in some other database systems, there is no such advantage in PostgreSQL; in fact character(n) is usually the slowest of the three because of its additional storage costs. In most situations text or character varying should be used instead.
-
由 Arthur Neves 提交于
Add tests to make sure scopes cannot be create with names such as: private, protected, public. Make sure enum values don't collide with those methods too.
-
- 03 4月, 2014 4 次提交
-
-
由 Lauro Caetano 提交于
It was causing error when using `with_options` passing a lambda as its last argument. class User < ActiveRecord::Base with_options dependent: :destroy do |assoc| assoc.has_many :profiles, -> { where(active: true) } end end It was happening because the `option_merger` was taking the last argument and checking if it was a Hash. This breaks the HasMany usage, because its last argument can be a Hash or a Proc. As the behavior described in this test: https://github.com/rails/rails/blob/master/activesupport/test/option_merger_test.rb#L69 the method will only accept the lambda, this way it will keep the expected behavior. See 9eaa0a34
-
由 Dmitry Lavrov 提交于
-
由 Jan Habermann 提交于
-
由 Jefferson Lai 提交于
CollectionProxy should be able to reuse the behavior (methods) of its parent class, but with its own state. This change allows CollectionProxy to use the arel object corresponding to its association's scope.
-
- 02 4月, 2014 4 次提交
-
-
-
由 Matthew Draper 提交于
Restore the 4.0 behaviour for 'sqlite3:///', but deprecate it. We'll change to the absolute-path interpretation in 4.2. The current "correct" spellings for in-memory, relative, and absolute URLs, respectively, are: sqlite3::memory: sqlite3:relative/path sqlite3:/full/path Substantially reverses/defers fbb79b51. Uncovered by @guilleiguaran while investigating #14495, though that sounds like a different issue.
-
由 Dave Lee 提交于
Expand the query used in #table_exists? to include materialized views in the kinds of relations it searches.
-
- 01 4月, 2014 1 次提交
-
-
由 Yves Senn 提交于
I ran the whole test suite and compared the old to the new types. Following is the list of types that did change with this patch: ``` DIFFERENT TYPE FOR mood: NEW: enum, BEFORE: DIFFERENT TYPE FOR floatrange: NEW: floatrange, BEFORE: float ``` The `floatrange` is a custom type. The old type `float` was simply a coincidence form the name `floatrange` and our type-guessing.
-
- 31 3月, 2014 1 次提交
-
-
由 Luke Steensen 提交于
fixes #10613
-
- 28 3月, 2014 3 次提交
-
-
由 Rafael Mendonça França 提交于
Swap Timestamp/Callbacks order in ActiveRecord::Base
-
由 chrisfinne 提交于
custom primary_key that didn't save due to validation error
-
由 Henrik Nyh 提交于
It's unintuitive to call '#valid?' when you want to run validations but don't care about the return value. The alias in ActiveRecord isn't strictly necessary (the ActiveModel alias is still in effect), but it clarifies.
-
- 27 3月, 2014 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 26 3月, 2014 1 次提交
-
-
由 Steve Rice 提交于
Also: - updates tests by stubbing table_exists? method - adds entry for creating indexes in CREATE TABLE to changelog
-