| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
The last call site of `last_version` was removed with:
838e18321118ee3ec6669217e5ea0216f79c969a
|
|
|
|
| |
This method is private API and never used. Let's remove it.
|
|
|
|
|
|
| |
This change allows to instantiate all ActiveRecordError descendant
execption classes without arguments, which might be useful in testing
and is far less surprising than mandatory arguments.
|
|\
| |
| |
| | |
Add detailed error message to `IrreversibleMigration`
|
| | |
|
|\ \
| |/
|/| |
|
| | |
|
|\ \
| | |
| | | |
Use `ActiveRecord::Migration#connection` instead of `@connection`
|
| | |
| | |
| | |
| | |
| | | |
`ActiveRecord::Migration` has `connetion` method so replace to use
`connection` method to get `@connection` as much as possible
|
| |/
|/|
| |
| | |
In rails generally migration file's timestamp is "YYYYMMDDHHMMSS".
|
|/ |
|
| |
|
|\
| |
| | |
Add Docs for ActiveRecord #check_pending [ci skip]
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
remove_foreign_key methods
fix tests
|
|\ \
| | |
| | |
| | | |
Update documentation for ActiveRecord::Migration#remove_index
|
| |/
| |
| |
| | |
`remove_index` works with multiple column names as `add_index`
|
|\ \
| |/
|/|
| |
| |
| | |
Add RDoc about add_reference to ActiveRecord::Migration
[ci skip]
|
|/
|
|
| |
[ci skip]
|
|
|
|
|
|
|
|
|
| |
Stems from https://github.com/rails/rails/pull/20105#issuecomment-100900939
where @senny said:
> From my point of view, all the docs (guides, API) are version bound.
> They should describe that version and continue to be available when newer versions are released.
> The cross referencing can be done by the interested user.
|
| |
|
|
|
|
| |
I think this was supposed to be "roundTrip".
|
| |
|
|
|
|
|
| |
This constant may be define for auxiliar gems like rails-html-sanitizer
and these methods call will fail.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts deprecations added in #13528.
The task is brought back for two reasons:
1. Give plugins a way to hook into the test database initialization process
2. Give the user a way to force a test database synchronization
While `test:prepare` is still a dependency of every test task, `db:test:prepare`
no longer hooks into it. This means that `test:prepare` runs before the schema
is synchronized. Plugins, which insert data can now hook into `db:test:prepare`.
The automatic schema maintenance can't detect when a migration is rolled-back,
modified and reapplied. In this case the user has to fall back to `db:test:prepare`
to force the synchronization to happen.
|
| |
|
| |
|
|
|
|
| |
Fixes #17170
|
| |
|
| |
|
|
|
|
|
|
|
| |
This method would assume that if last migration in the migrations
directory matched the current schema version, that the database was up
to date, but this does not account for new migrations with older
timestamps that may be pending.
|
|
|
|
|
|
|
|
|
|
| |
The rake tasks and the `DatabaseTakss` adapter classes used to
assume a configuration at some places. This forced the rake
tasks to establish a specific connection before calling into
`load_schema`.
After #15394 this started to cause issues because it could
`purge` the wrong database before loading the schema.
|
|
|
|
| |
These are the only instances of this in the whole code base.
|
| |
|
|
|
|
| |
respect `table_name_prefix` and `table_name_suffix`.
|
|\
| |
| | |
Skip migration check if adapter doesn't support it
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
The migration numbers were normalized different ways. This left
the task output in an inconsistent state.
Closes #15538.
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
jcxplorer/fix-enable_extension-with-table_name_prefix
Fix migrations that use enable_extension with table_name_prefix/suffix
Conflicts:
activerecord/CHANGELOG.md
activerecord/lib/active_record/migration.rb
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When using ActiveRecord::Base.table_name_prefix and/or
table_name_suffix, extension names got the same treatment as table names
when running migrations. This led to migrations that tried to call, for
example, enable_extension("prefix_hstore") on the connection.
|
| |/
|/| |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Move check from generated helper to test_help.rb, so that all
applications can benefit
* Rather than just raising when the test schema has pending migrations,
try to load in the schema and only raise if there are pending
migrations afterwards
* Opt out of the check by setting
config.active_record.maintain_test_schema = false
* Deprecate db:test:* tasks. The test helper is now fully responsible
for maintaining the test schema, so we don't need rake tasks for this.
This is also a speed improvement since we're no longer reloading the
test database on every call to "rake test".
|
| | |
|
| | |
|