- 14 7月, 2020 3 次提交
-
-
由 Madogiwa 提交于
-
由 Ryuta Kamizono 提交于
Allow attribute's default to be configured but keeping its own type
-
由 Ryuta Kamizono 提交于
```ruby class Post < ActiveRecord::Base attribute :written_at, default: -> { Time.now.utc } end # Rails 6.0 Post.type_for_attribute(:written_at) # => #<Type::Value ... precision: nil, ...> # Rails 6.1 Post.type_for_attribute(:written_at) # => #<Type::DateTime ... precision: 6, ...> ``` This is an alternative of #39797. Context https://github.com/rails/rails/pull/39797#issuecomment-655191817. If people intend to override the existing type on the attribute, usually an overriding type is explicitly specified, so I agree that the current behavior (drop existing type information if type is omitted) is practically quite useless, and it is almost like a bug in that there is no way to override just the default. So I'd like to change the current behavior on existing attributes without a deprecation as a fix. Closes #39797. See also https://github.com/kufu/activerecord-bitemporal/pull/57.
-
- 13 7月, 2020 4 次提交
-
-
由 Ryuta Kamizono 提交于
Allow default to be configured for Enum
-
由 Eugene Kenny 提交于
Also fix the language identifier for one JavaScript example.
-
由 Eugene Kenny 提交于
-
由 Vipul A M 提交于
Use correct grammar in Rails 5.0 upgrade section [ci-skip]
-
- 11 7月, 2020 1 次提交
-
-
由 Michael Hagar 提交于
-
- 10 7月, 2020 8 次提交
-
-
由 Ryuta Kamizono 提交于
```ruby class Book < ActiveRecord::Base enum status: [:proposed, :written, :published], _default: :published end Book.new.status # => "published" ```
-
由 Ryuta Kamizono 提交于
Fix typo s/delegates/delegate/ [ci skip]
-
由 Hiroshi Kajisha 提交于
-
由 Vipul A M 提交于
fix grammar in active support docs [ci-skip]
-
由 Michael Hagar 提交于
-
由 Rafael França 提交于
Add Active Record Marshal forward compatibility tests
-
由 Rafael França 提交于
Save an allocation in visit CAT
-
由 Vinicius Stock 提交于
-
- 09 7月, 2020 7 次提交
-
-
由 Eugene Kenny 提交于
More consistent usage of version option for commands in guides [skip ci]
-
由 Petrik 提交于
In the getting started guide intro section both `-v` and `--version` are used: $ ruby -v $ sqlite3 --version $ node --version $ yarn -v $ rails --version Both ruby and yarn support `--version` as well, but sqlite3 does not support `-v`. For consistency use `--version` option for `ruby` and `yarn` commands.
-
由 Eugene Kenny 提交于
Save a string allocation in visit_STAR
-
由 Jonathan Hefner 提交于
Use appropriate code fences [ci skip]
-
由 Jonathan Hefner 提交于
Follow-up to #39620. This commit changes a few overlooked code fences to `bash`, and changes a few IRB session snippets to be only Ruby code with a `ruby` fence.
-
由 Jonathan Hefner 提交于
Include warning about S3 timeout behavior [ci skip]
-
由 Stephen Chen 提交于
-
- 08 7月, 2020 5 次提交
-
-
由 Eugene Kenny 提交于
Replace javascript highlighting in guides with Rouge [ci skip]
-
由 Eugene Kenny 提交于
-
由 Petrik 提交于
Replace javascript highlighting using Prism with the Rouge markdown highlighter. Uses the github theme.
-
由 Eugene Kenny 提交于
Docs: config.hosts: details re: regexp anchors
-
由 Jared Beck 提交于
-
- 07 7月, 2020 12 次提交
-
-
由 Michael Hagar 提交于
-
由 Michael Hagar 提交于
-
由 Michael Hagar 提交于
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
Type cast extra select for eager loading
-
由 Ryuta Kamizono 提交于
It is not a big issue for common types, since type casting in master branch is much improved, but strictly speaking eager loading should respect column types from database like as `find_by_sql` also does. https://github.com/rails/rails/blob/97c34a55fa0f4e8d51504bd137f6e82155336d9a/activerecord/lib/active_record/querying.rb#L46-L52 Fixes #39605.
-
由 Ryuta Kamizono 提交于
fix misleading section on associations guide [ci skip]
-
由 Victor Perez Rodriguez 提交于
-
由 Rafael França 提交于
Remove broken responsive-tables JS, improving mobile readability & accessibility [ci skip]
-
由 Rafael França 提交于
Add link to forum
-
由 Wojciech Wnętrzak 提交于
In addition remove SO link Follow up to https://github.com/rails/homepage/pull/140 [CI skip]
-
由 Rafael França 提交于
Added docs for client-side logger
-