Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't attempt to load the schema file in tests if none exists | Sean Griffin | 2014-10-31 | 1 | -1/+1 |
| | |||||
* | Load test schema even if there are no migrations | Sean Griffin | 2014-10-31 | 1 | -1/+5 |
| | | | | Fixes #17170 | ||||
* | [ci skip] add doc for STEP in migration | Aditya Kapoor | 2014-08-21 | 1 | -3/+6 |
| | |||||
* | [ci skip] correct docs about the migration generation | Aditya Kapoor | 2014-08-21 | 1 | -9/+2 |
| | |||||
* | Correctly determine if migration is needed. | Jeremy McNevin | 2014-08-13 | 1 | -9/+8 |
| | | | | | | | 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. | ||||
* | schema rake tasks are specific about the configuration to act on. | Yves Senn | 2014-08-06 | 1 | -1/+1 |
| | | | | | | | | | | 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. | ||||
* | Remove redundant `self.` in class method calls | Jack Danger Canty | 2014-07-30 | 1 | -5/+5 |
| | | | | These are the only instances of this in the whole code base. | ||||
* | do not hold on to a stale connection object. fixes #15998 | Aaron Patterson | 2014-07-01 | 1 | -4/+9 |
| | |||||
* | fk: dump foreign keys to schema.rb | Yves Senn | 2014-06-26 | 1 | -1/+3 |
| | | | | respect `table_name_prefix` and `table_name_suffix`. | ||||
* | Merge pull request #13963 from lucas-clemente/pending_migrations | Rafael Mendonça França | 2014-06-16 | 1 | -5/+8 |
|\ | | | | | Skip migration check if adapter doesn't support it | ||||
| * | skip migration check if adapter doesn't support it | Lucas Clemente | 2014-04-19 | 1 | -5/+8 |
| | | |||||
* | | `bin/rake db:migrate:status` works with legacy migration numbers. | Yves Senn | 2014-06-06 | 1 | -1/+1 |
| | | | | | | | | | | | | | | The migration numbers were normalized different ways. This left the task output in an inconsistent state. Closes #15538. | ||||
* | | Remove deprecated method ActiveRecord::Migrator.proper_table_name | Akshay Vishnoi | 2014-06-05 | 1 | -13/+0 |
| | | |||||
* | | Merge pull request #10798 from ↵ | Rafael Mendonça França | 2014-05-19 | 1 | -1/+1 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
| * | | Fix migrations with enable_extension | Joao Carlos | 2013-05-29 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | | Remove dead test code for unsupported adapters | Sean Griffin | 2014-05-17 | 1 | -1/+1 |
| |/ |/| | |||||
* | | adding missed change | kayvan | 2014-02-11 | 1 | -1/+1 |
| | | |||||
* | | adding connection parameter to check_pending for migrations | kayvan | 2014-02-11 | 1 | -5/+5 |
| | | |||||
* | | activerecord: Initialize Migration with version from MigrationProxy. | Dylan Thacker-Smith | 2014-01-06 | 1 | -1/+1 |
| | | |||||
* | | Automatically maintain test database schema | Jon Leighton | 2014-01-02 | 1 | -0/+13 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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". | ||||
* | | ActiveRecord migration exception message formatting | John Joseph Bachir | 2013-12-03 | 1 | -8/+15 |
| | | |||||
* | | Remove deprecated cattr_* requires | Genadi Samokovarov | 2013-12-03 | 1 | -1/+1 |
| | | |||||
* | | Use `SchemaStatements#initialize_schema_migrations_table` instead of ↵ | Ryuta Kamizono | 2013-11-20 | 1 | -1/+1 |
| | | | | | | | | `ActiveRecord::SchemaMigration.create_table`. | ||||
* | | Refer to Rails.env only when Rails is defined | Akira Matsuda | 2013-11-11 | 1 | -1/+5 |
| | | |||||
* | | Warnings removed for ruby trunk | Arun Agrawal | 2013-11-01 | 1 | -1/+1 |
| | | | | | | Same as 4d4ff531b8807ee88a3fc46875c7e76f613956fb | ||||
* | | Fix migration docs to use new remove_column semantics | Paul Nikitochkin | 2013-10-25 | 1 | -2/+2 |
| | | | | | | | | Fixes: #12640 | ||||
* | | Changing deprecation_horizon to be Rails 4.2 | wangjohn | 2013-08-24 | 1 | -1/+1 |
| | | | | | | | | | | Also, +ActiveRecord::Migrator.proper_table_name+ should actually have a deprecation horizon of Rails 4.2 (not 4.1). | ||||
* | | Making proper_table_name take in options. | wangjohn | 2013-08-22 | 1 | -18/+40 |
| | | | | | | | | | | | | | | | | | | | | | | The options will specify the prefix and the suffix. Also, I'm moving the method to be an instance method on the +Migration+ instance. This makes more sense than being a class method on the +Migrator+ class because the only place that uses it is on a +Migration+ instance (in a method_missing hook). The logic for the Migrator shouldn't be doing any work to calculate the table name, it should be the Migration itself. Also made some small indentation fixes. | ||||
* | | Avoid "uninitialized constant ActiveRecord::PendingMigrationError::Rails" | Akira Matsuda | 2013-07-29 | 1 | -1/+1 |
| | | |||||
* | | rake -> bin/rake | Steve Klabnik | 2013-07-24 | 1 | -1/+1 |
| | | |||||
* | | remove leftover if after deprecation removal (68563128). | Yves Senn | 2013-07-04 | 1 | -4/+1 |
| | | |||||
* | | Remove deprecated block filter from `ActiveRecord::Migrator#migrate`. | Yves Senn | 2013-07-04 | 1 | -9/+1 |
| | | |||||
* | | Remove deprecated String constructor from `ActiveRecord::Migrator`. | Yves Senn | 2013-07-04 | 1 | -3/+0 |
| | | |||||
* | | Fix Build. Changing constructor. | Arun Agrawal | 2013-06-05 | 1 | -3/+3 |
| | | |||||
* | | only check pending migrations if there are new files | Aaron Patterson | 2013-06-05 | 1 | -2/+25 |
| | | |||||
* | | Fix #10789. Now at last ::Logger doesn't support #silence method . | kennyj | 2013-06-05 | 1 | -3/+1 |
|/ | |||||
* | copy edits [ci skip] | Vijay Dev | 2013-05-12 | 1 | -5/+1 |
| | |||||
* | Added documentation for ActiveRecord::Base#next_migration_number | aditya-kapoor | 2013-05-09 | 1 | -0/+5 |
| | |||||
* | Remove code duplication | Neeraj Singh | 2013-04-24 | 1 | -8/+9 |
| | |||||
* | Improve the error message | Rafael Mendonça França | 2013-04-19 | 1 | -1/+1 |
| | |||||
* | Support transactions in Migrator.run | bondarev | 2013-04-18 | 1 | -5/+12 |
| | |||||
* | mark ReversibleBlockHelper as :nodoc: [ci skip] | Francesco Rodriguez | 2013-04-04 | 1 | -1/+1 |
| | |||||
* | Fixed typos in activerecord | Prathamesh Sonpatki | 2013-03-27 | 1 | -1/+1 |
| | |||||
* | Changed the call to .sort.last to .max when computing the migration version. You | wangjohn | 2013-03-19 | 1 | -1/+1 |
| | | | | | do not actually need to sort everything (incurs more cost than just a simple max). | ||||
* | Preserve magic comments and content encoding of copied migrations. | OZAWA Sakuro | 2013-03-09 | 1 | -3/+12 |
| | | | | | During insertion of "# This migration comes from ... " comment at the beginning of a migration, presence of magic comment was not considered. | ||||
* | Fix changelog indent, remove self from method call in changelog/doc examples | Carlos Antonio da Silva | 2013-03-08 | 1 | -1/+2 |
| | | | | [ci skip] | ||||
* | transactions can be turned off per Migration. | Yves Senn | 2013-03-05 | 1 | -7/+37 |
| | | | | | | | | | | | Closes #9483. There are SQL Queries that can't run inside a transaction. Since the Migrator used to wrap all Migrations inside a transaction there was no way to run these queries within a migration. This patch adds `self.disable_ddl_transaction!` to the migration to turn transactions off when necessary. | ||||
* | Use `silence` instead of `quietly` to silence the `CheckPending` middleware. | Lucas Mazza | 2013-01-26 | 1 | -1/+1 |
| | | | | | | | | `Kernel.quietly` silences `STDOUT` and `STDERR`, which is useless if the logger is writing to a file, while `AS::Logger#silence` swaps the logger level to `ERROR`. Related to #8820 and #8052. | ||||
* | Fixes for PR [#8267] | Marc-Andre Lafortune | 2012-12-22 | 1 | -1/+10 |
| | | | | | | | | * Fix Migration#reversible by not using `transaction`. * Adapt mysql adapter to updated api for remove_column * Update test after aedcd683684d08eaf30623a4b48ce31a31426372 | ||||
* | Correctly shows RAILS_ENV=development even when ENV['RAILS_ENV'] is not set ↵ | Andy Lindeman | 2012-12-21 | 1 | -1/+1 |
| | | | | | | (e.g., in Pow) * Fixes #8025 |