- 24 12月, 2016 2 次提交
-
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
- 23 12月, 2016 2 次提交
-
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
- 21 12月, 2016 1 次提交
-
-
由 Julia Lopez 提交于
-
- 19 12月, 2016 2 次提交
-
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
`supports_primary_key?` method is defined in `AbstractAdapter` so does not raise any errors.
-
- 16 12月, 2016 2 次提交
-
-
由 Kir Shatrov 提交于
Right now, when fixture is not a Hash we throw an error message saying "fixture is not a hash". This is not very user friendly because it's not saying which fixture is invalid.
-
由 Richard Monette 提交于
make sql statements frozen dup if arel is not our string expect runtime error dont wrap runtime error in invalid log errors will now be treated as runtime errors update changelog
-
- 14 12月, 2016 2 次提交
-
-
由 yuuji.yaginuma 提交于
This fixes the following warning. ``` test/caching_test.rb:986: warning: parentheses after method name is interpreted as test/caching_test.rb:986: warning: an argument list, not a decomposed argument test/cases/adapters/mysql2/reserved_word_test.rb:146: warning: parentheses after method name is interpreted as test/cases/adapters/mysql2/reserved_word_test.rb:146: warning: an argument list, not a decomposed argument ``` Ref: https://github.com/ruby/ruby/commit/65e27c8b138d6959608658ffce2fa761842b8d24
-
由 Rafael Mendonça França 提交于
[ci skip]
-
- 12 12月, 2016 1 次提交
-
-
由 Ryuta Kamizono 提交于
-
- 11 12月, 2016 2 次提交
-
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
It is enough to distinguish only the trailing `unsigned` and `unsigned zerofill`.
-
- 10 12月, 2016 4 次提交
-
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
-
由 Stefan Budeanu 提交于
Race conditions can occur when an ActiveRecord is destroyed twice or destroyed and updated. The callbacks should only be triggered once, similar to a SQL database trigger.
-
- 09 12月, 2016 5 次提交
-
-
由 Matthew Draper 提交于
-
由 utilum 提交于
-
由 Prathamesh Sonpatki 提交于
- If aliased, then use the aliased attribute name.
-
由 Prathamesh Sonpatki 提交于
- If aliased, then use the aliased attribute name. - Fixes #26417.
-
由 Sean Griffin 提交于
While these method aren't public API, they are a non-trivial internal API which warrant a bit of explanation.
-
- 07 12月, 2016 1 次提交
-
-
由 Alex Kitchens 提交于
-
- 06 12月, 2016 11 次提交
-
-
由 Ryuta Kamizono 提交于
Raise `ActiveRecord::RangeError` when values that executed are out of range.
-
由 Ryuta Kamizono 提交于
Raise `ActiveRecord::NotNullViolation` when a record cannot be inserted or updated because it would violate a not null constraint.
-
由 Edgars Beigarts 提交于
-
由 Ryuta Kamizono 提交于
Actually the `primary_key` definition is not used but the inconsistency is confusing. Actual definition is `bigint auto_increment PRIMARY KEY` so `UNSIGNED` and `(8)` is unnecessary. See also #21607.
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
Because defunct wrapper class is kept for compatibility.
-
由 Ryuta Kamizono 提交于
Follow up to #27272.
-
由 Pavel Pravosud 提交于
-
由 Jon McCartie 提交于
-
由 Ryuta Kamizono 提交于
Using `:auto_increment` option for abstracting the DB-specific auto incremental types. It is worth to ease to implement the compatibility layer.
-
由 Sean Griffin 提交于
SQLite's default query interface ignores anything after the first semicolon in a query. This is actually quite common behavior in database drivers, especially when dealing with code paths for prepared statements (which we are). While this should only affect SQLite, as I'm not aware of any drivers which don't support multi-insert. Even if this does affect other third party drivers though, I'd prefer not to assume that more than one query can be executed per call to `execute`. Fixes #26948. Close #27242.
-
- 05 12月, 2016 1 次提交
-
-
由 Ryuta Kamizono 提交于
-
- 02 12月, 2016 2 次提交
-
-
由 Edgars Beigarts 提交于
-
由 Sean Griffin 提交于
PG's type map assumes that all Ruby floats are going to a field with an OID of type float4 or float8, and generates text which is invalid syntax for other types. Since the gem can handle floats properly without this encoder (albeit slightly slower), we can continue to use that as we have in prior versions of Rails. Fixes #27246
-
- 01 12月, 2016 2 次提交
-
-
由 nanaya 提交于
The alternative is escaping it but moving around the text seems a bit simpler.
-
由 Sean Griffin 提交于
While working on updating Paper Trail for 5.1 compatibility, I noticed that I was required to pass a second argument to `attribute`. I didn't intend for this to be the case, as `attribute :foo` is totally reasonable shorthand for "I want `attr_accessor :foo`, but also have it work with things like `.attributes` and `ActiveRecord::Dirty`"
-