Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 | ||||
* | Add Migration#reversible for reversible data operations [#8267] | Marc-Andre Lafortune | 2012-12-21 | 1 | -0/+41 |
| | |||||
* | Allow revert of whole migration [#8267] | Marc-Andre Lafortune | 2012-12-21 | 1 | -3/+39 |
| | |||||
* | Extract exec_migration [#8267] | Marc-Andre Lafortune | 2012-12-21 | 1 | -11/+16 |
| | |||||
* | Allow reverting of migration commands with Migration#revert [#8267] | Marc-Andre Lafortune | 2012-12-21 | 1 | -25/+45 |
| | |||||
* | recognize migrations, in folders containing numbers and 'rb'. | Yves Senn | 2012-12-13 | 1 | -1/+1 |
| | | | | Closes #8492 | ||||
* | Move to the schema-migrations-metadata branch. | Jeremy Kemper | 2012-12-09 | 1 | -17/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
* | Add metadata to schema_migrations | Josh Susser | 2012-12-01 | 1 | -7/+17 |
| | | | | | migrated_at: timestamp when migration run fingerprint: md5 hash of migration source name: filename without version or extension | ||||
* | stop raising so many exceptions | Aaron Patterson | 2012-11-07 | 1 | -1/+5 |
| | |||||
* | Fixed grammar in migration pending error. | Steve Klabnik | 2012-11-02 | 1 | -1/+1 |
| | |||||
* | Make caller attribute in deprecation methods optional | Alexey Gaziev | 2012-10-30 | 1 | -1/+1 |
| | |||||
* | Provide a call stack for deprecation warnings where needed. | Nikita Afanasenko | 2012-10-29 | 1 | -3/+2 |
| | | | | It's sometimes hard to quickly find where deprecated call was performed, especially in case of migrating between Rails versions. So this is an attempt to improve the call stack part of the warning message by providing caller explicitly. | ||||
* | Don't log on pending migration check | schneems | 2012-10-28 | 1 | -1/+3 |
| | | | | | Conversation from: #6665 cc/ @rafaelfranca | ||||
* | Fix missing typewriter tag | Lincoln Lee | 2012-10-08 | 1 | -1/+1 |
| | |||||
* | fix example in Migration docs [ci skip] | Francesco Rodriguez | 2012-09-30 | 1 | -1/+1 |
| | |||||
* | add change_table transformation to Migration docs [ci skip] | Francesco Rodriguez | 2012-09-30 | 1 | -16/+19 |
| | |||||
* | Revert "Remove update_attribute." | Rafael Mendonça França | 2012-08-25 | 1 | -2/+2 |
| | | | | | | | | | | | This reverts commit a7f4b0a1231bf3c65db2ad4066da78c3da5ffb01. Conflicts: activerecord/lib/active_record/associations/has_one_association.rb activerecord/lib/active_record/persistence.rb activerecord/test/cases/base_test.rb activerecord/test/cases/dirty_test.rb activerecord/test/cases/timestamp_test.rb | ||||
* | Update Migration Docs: Defaults for Boolean Fields | Thomas Klemm | 2012-08-04 | 1 | -1/+1 |
| | | | A Boolean field will accept true or false as defaults instead of 0 / 1. | ||||
* | load active_support/deprecation in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | |||||
* | load active_support/core_ext/module/delegation in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | |||||
* | Remove update_attribute. | Steve Klabnik | 2012-06-14 | 1 | -2/+2 |
| | | | | | | | | | | | Historically, update_attribute and update_attributes are similar, but with one big difference: update_attribute does not run validations. These two methods are really easy to confuse given their similar names. Therefore, update_attribute is being removed in favor of update_column. See the thread on rails-core here: https://groups.google.com/forum/?fromgroups#!topic/rubyonrails-core/BWPUTK7WvYA | ||||
* | Remove bundle exec from the exception message | Rafael Mendonça França | 2012-06-10 | 1 | -1/+1 |
| | |||||
* | Build fix broken here 03f2249153ae4d2078646e6796d8b9e5ef747fba | Arun Agrawal | 2012-06-10 | 1 | -1/+1 |
| | |||||
* | Use . instead of :: for class methods, add CHANGELOG entries | José Valim | 2012-06-10 | 1 | -2/+2 |
| | |||||
* | raise error for pending migration | schneems | 2012-06-09 | 1 | -2/+26 |
| | | | can be configured by setting config.active_record.migration. Setting to :page_load will raise an error on each page refresh if there are migrations that are pending. Setting to :page_load is defaulted in development for new applications. | ||||
* | add convenience methods for checking migrations | schneems | 2012-06-03 | 1 | -0/+8 |
| | | | if a rails project needs to be migrated ActiveRecord::Migrator.needs_migration? will be true or false if the current version matches the last version. | ||||
* | SchemaMigration should be loaded lazily. | kennyj | 2012-05-29 | 1 | -1/+0 |
| |