| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Delegate `Column#type` to the injected type object
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The decision to wrap type registrations in a proc was made for two
reasons.
1. Some cases need to make an additional decision based on the type
(e.g. a `Decimal` with a 0 scale)
2. Aliased types are automatically updated if they type they point to is
updated later. If a user or another adapter decides to change the
object used for `decimal` columns, `numeric`, and `number` will
automatically point to the new type, without having to track what
types are aliased explicitly.
Everything else here should be pretty straightforward. PostgreSQL ranges
had to change slightly, since the `simplified_type` method is gone.
|
| |
|
|\
| |
| |
| |
| | |
eileencodes/return-early-on-delete-and-destroy-methods
Return early on delete and destroy methods
|
| |
| |
| |
| |
| |
| | |
When delete or destroy is called on all records nothing
is deleted or destroyed. Intead of running through the code and still
not deleteing anything, we should early return
|
|\ \
| | |
| | | |
Make `:index` in migrations work with all column types
|
| |/ |
|
|\ \
| | |
| | | |
Use destructured arguments when looping through pairs
|
| | |
| | |
| | |
| | | |
Minor refactoring of looping behavior for aggregation
|
| | |
| | |
| | |
| | | |
Partial revert of c0bfc3f412834ffe8327a15ae3a46602cc28e425
|
| | | |
|
|\ \ \
| | | |
| | | | |
Reorganize ActiveRecord tasks [Arun Agrawal & Abd ar-Rahman Hamidi]
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
This is a reaction to https://github.com/rails/rails/commit/7ca75f3789e316b6f3dc1f8000ec4f85c8ba32ea#commitcomment-6303828
|
|\ \ \ \
| | | | |
| | | | | |
PostgreSQL timestamps should always be datetimes
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The current behavior is that they are treated as `datetime` normally,
but if they are part of an array, they are treated as `timestamp`. The
only place that seems to be impacted by this is schema dumping, which
shouldn't matter since `t.datetime` and `t.timestamp` are equivalent in
the `PostgreSQL` adapter, anyway.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
I didn't want to do this, FNM_EXTGLOB is defined on 2.1.x, but Dir.glob
returns the wrong value on Ruby less than 2.2.0. Checking for a
case-insensitive FS seems too hard, so just check Ruby version Checking
for a case-insensitive FS seems too hard, so just check Ruby version.
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Remove cruft now that strong_parameters is default [ci skip]
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
[ci skip]
|
|\ \ \ \ \ \
| |_|_|_|_|/
|/| | | | | |
remove ecosystem link that is broken [ci skip]
|
|/ / / / / |
|
|\ \ \ \ \
| |_|_|_|/
|/| | | | |
Add a type object to Column constructor
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | | |
Part of #15134. In order to perform typecasting polymorphically, we need
to add another argument to the constructor. The order was chosen to
match the `oid_type` on `PostgreSQLColumn`.
|
|\| | |
| |/ /
|/| | |
Remove dead test code for unsupported adapters
|
|/ / |
|
|\ \
| | |
| | | |
Updates reset_counters to allow counter name in params
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add support for counter name to be passed as parameter
on `CounterCache::ClassMethods#reset_counters`. This is
to be consistent with the other methods in the module
that all accept counter name.
|
| | |
| | |
| | |
| | | |
cc https://github.com/rails/rails/issues/14848#issuecomment-41198795
|
|\ \ \
| | | |
| | | | |
Collected TimeZone's class methods together
|
| | | |
| | | |
| | | |
| | | | |
Just moved class methods up in file and moved `def self.` methods into `class << self`.
|
|\ \ \ \
| | | | |
| | | | | |
Add missing tests for column type cast behavior
|
| |/ / / |
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The fix introduced at 75ba7425f6d235f254c00a45a58f42e88f80301a were
missing this case.
To fix the original issue mentioned at that commit the correct is to
remove update_config_files from the command list since we should not run
both config_files command when creating a new application.
Tests were added to make sure everything is working fine.
|
|\ \ \
| | | |
| | | | |
Fix app generator test hanging.
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Fix symbol at guides getting_started.md
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Ensure :js is defined regardless of the outcome of the test.
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
fixed capitalizations [ci skip]
|
|/ / / /
| | | |
| | | | |
jQuery, SQLite3 and Unicorn use these respective capitalizations pretty much everywhere else in the comment sections of the project.
|
|\ \ \ \
| |_|/ /
|/| | | |
Fix typo in CHANGELOG entry for #15071
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Replace first person point of view on guides.
|
|/ / /
| | |
| | |
| | | |
[skip ci]
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
roccoblues/fix_duplicate_activesupport_subscribers
Fixed duplicate subscribers in ActiveSupport::Subscriber
Conflicts:
activesupport/CHANGELOG.md
|