aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/schema_migration.rb
Commit message (Collapse)AuthorAgeFilesLines
* Extract AR::SchemaMigration.normalized_versions methodViktar Basharymau2014-06-271-0/+4
|
* `ActiveRecord::SchemaMigration` has no primary key.Yves Senn2014-06-061-0/+3
| | | | | | | | | | Before this patch, using `ActiveRecord::Base.primary_key_prefix_type` with `:table_name_with_underscore` would change the `SchemaMigration` model to have a primary key. This resulted in broken queries for PG because it tried to return the inserted PK (which does not exist). Closes #15051. Closes #15419.
* `bin/rake db:migrate:status` works with legacy migration numbers.Yves Senn2014-06-061-0/+4
| | | | | | | The migration numbers were normalized different ways. This left the task output in an inconsistent state. Closes #15538.
* added schema_migrations_table_name to ActiveRecord::Base in order that the ↵Jerad Phelps2013-10-271-2/+2
| | | | | | | | | | | | | | | | | | | | name of the schema migrations table can be configured. consolidated test_schema_migrations_table_name tests Added changelog entry edited changelog removed commented lines removed reader ensure the schema migrations table is reset at end of test added entry to configuration guide guides typo and changelog order
* Minor refactor of ActiveRecord::SchemaMigration to remove references to ↵Kyle Rippey2013-05-261-18/+24
| | | | Base, override table_exists method, and switch to preferred style for class method definitions.
* sets limit 191 for schema_migrations#version in mysql2 if the encoding is ↵Xavier Noria2013-03-171-5/+8
| | | | | | "utf8mb4" Please, see rationale in the included CHANGELOG patch.
* Move to the schema-migrations-metadata branch.Jeremy Kemper2012-12-091-36/+3
| | | | | | | | | | | | | | | | | | | | | | | | Pending work on graceful app upgrades. Revert "Merge pull request #8439 from joshsusser/fixes" This reverts commit ce8ac39338f86388e70356b3a470b3ea443802ae, reversing changes made to b0e7b6f67c984d4b1502e801781ed75fad681633. Revert "Merge pull request #8431 from joshsusser/schemadump" This reverts commit 036d3e1c2b65c4b8cbd23de2e20ad67b9b756182, reversing changes made to 0c692f4d121792117b6a71e5ed590a31c3b9d12e. Revert "Merge branch 'joshsusser-master' into merge" This reverts commit 0c692f4d121792117b6a71e5ed590a31c3b9d12e, reversing changes made to 2e299fca715b083a60222a85e48f9d3b8dd8ce93. Conflicts: activerecord/CHANGELOG.md activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb activerecord/test/cases/schema_dumper_test.rb
* Oracle needs table to check index existenceJosh Susser2012-12-061-3/+3
|
* style cleanupJosh Susser2012-12-031-4/+4
|
* Add migration history to schema.rb dumpJosh Susser2012-12-021-0/+12
|
* Add metadata to schema_migrationsJosh Susser2012-12-011-4/+25
| | | | | migrated_at: timestamp when migration run fingerprint: md5 hash of migration source name: filename without version or extension
* Remove mass assignment security from ActiveRecordGuillermo Iguaran2012-09-161-1/+0
|
* Remove duplicated unique index name.kennyj2012-07-141-4/+7
|
* allow mass-assign version attribute in AR::SchemaMigrationSergey Nartimov2012-02-061-0/+2
|
* make sure the migration table is alive and emptyAaron Patterson2012-01-131-2/+1
|
* refactor schema migration table creation to the schema migration modelAaron Patterson2012-01-131-0/+18
|
* convert the migration list to a Set, remove duplicate codeAaron Patterson2012-01-131-0/+4
|
* use the schema migration model to dump schema infoAaron Patterson2012-01-131-1/+3
|
* add a migration schema modelAaron Patterson2012-01-131-0/+9