| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Remove `delete_sql` in sqlite3 adapter
|
|/
|
|
|
| |
`sql += " WHERE 1=1"` was introduced in 69cb942.
But it is not needed. ref https://www.sqlite.org/lang_delete.html
|
|\
| |
| | |
Refactor `connection.insert_sql`
|
|/
|
|
| |
`connection.insert_sql` is almost the same as `connection.insert`.
|
|\
| |
| | |
[close #22917] Don't output to `STDOUT` twice
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When `rails console` or `rails server` are used along with a logger set to output to `STDOUT` then the contents will show up twice. This happens because the logger is extended with `ActiveSupportLogger.broadcast` with a destination of STDOUT even if it is already outputting to `STDOUT`.
Previously PR #22592 attempted to fix this issue, but it ended up causing NoMethodErrors. A better approach than relying on adding a method and flow control is to inspect the log destination directly. For this `ActiveSupport::Logger.logger_outputs_to?` was introduced
```ruby
logger = Logger.new(STDOUT)
ActiveSupport::Logger.logger_outputs_to?(logger, STDOUT)
# => true
```
To accomplish this we must look inside of an instance variable of standard lib's Logger `@logdev`. There is a related Ruby proposal to expose this method in a standard way: https://bugs.ruby-lang.org/issues/11955
|
| |
| |
| |
| | |
This reverts related commits due to #22917.
|
|\ \
| | |
| | | |
Fix remove_index for postgresql when running legacy migrations
|
| | | |
|
|\ \ \
| |/ /
|/| |
| | |
| | | |
lsylvester/activemodel-depends-on-builder-but-doesnt-use-it
remove activemodel dependency on builder
|
|/ / |
|
|\ \
| | |
| | |
| | |
| | | |
y-yagi/make_generated_controller_test_file_work_correctly
make generated controller test work correctly
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Since the `#file_name` that not consideration for the namespace, if generate a controller with a namespace,
not the correct url helper generation, it had become an error to run the test.
Modified to generate the correct url helper, even if it is produced a namespace with controller.
|
|\ \ \
| | | |
| | | | |
Autoload ReferenceDefinition class in abstract adapter so that it can be used by #add_reference in schema_statements
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
used by #add_reference in schema_statements
- Fixes #22916.
|
|\ \ \ \
| | | | |
| | | | |
| | | | | |
Add short-hand methods for text and blob types in MySQL
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
In Pg and Sqlite3, `:text` and `:binary` have variable unlimited length.
But in MySQL, these have limited length for each types (ref #21591, #21619).
This change adds short-hand methods for each text and blob types.
Example:
create_table :foos do |t|
t.tinyblob :tiny_blob
t.mediumblob :medium_blob
t.longblob :long_blob
t.tinytext :tiny_text
t.mediumtext :medium_text
t.longtext :long_text
end
|
|\ \ \ \
| | | | |
| | | | | |
Per-form CSRF tokens
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Provide a better error message if a user mistypes the name of script …
|
|/ / / / /
| | | | |
| | | | |
| | | | | |
Add tests for detecting bad options for runner
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
While the type definition is in Active Model the change of behavior will
be only user facing in Active Record so better to put the entry in its
changelog.
[ci skip]
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Take UTC offset into account when assigning string value to time attributes.
|
| | | | | | |
|
|\ \ \ \ \ \
| |_|_|_|_|/
|/| | | | | |
Fix `connection#create` in PG adapter
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Originally `connection#create` had aliased to `connection#insert` in PG
adapter. But it was broken by #7447. Re-alias `create` to `insert` for
fixing it.
|
| | | | | | |
|
| |/ / / /
|/| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This fixes the case when you try to render an html you know safe and the
file is named something.html. With this commit the content of the html
won't be escaped anymore because AV won't use Raw handler and choose
Html handler instead.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
[ci skip] Update doc/resource link removed by #21211
|
| | |_|_|/
| |/| | | |
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
[ci skip] Add job suffix to sample's job file name
|
|/ / / / |
|
| |_|/
|/| | |
|
|\ \ \
| | | |
| | | | |
Fix `unsigned?` and `blob_or_text_column` for Enum columns in MySQL
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Add ActionController:Renderers test
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
To complement actionpack/test/controller/metal/renderers_test.rb
|
|\ \ \ \ \
| |_|_|/ /
|/| | | | |
activerecord: allocate fewer objects
|
| | | | | |
|
| | |/ /
| |/| | |
|
|\ \ \ \
| |_|_|/
|/| | | |
Fix user name in doc [ci skip]
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Allow add_to_transaction with null transaction
|
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes https://github.com/rails/rails/issues/22819
|
|\ \ \ \ \
| |_|_|/ /
|/| | | |
| | | | |
| | | | | |
stevenspiel/titleize_model_name_for_default_submit_button_value
titleize the model name on default submit buttons
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Replace x.times.map{} with Array.new(x){} in AD::Journey::Path::Pattern
|