Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | moving verbosity tests to the migrator test, removing ddl changes | Aaron Patterson | 2012-01-16 | 1 | -2/+1 |
| | |||||
* | silencing migrator tests, refactoring the migration test helper | Aaron Patterson | 2012-01-16 | 1 | -1/+2 |
| | |||||
* | refactor schema migration table creation to the schema migration model | Aaron Patterson | 2012-01-13 | 1 | -1/+1 |
| | |||||
* | convert the migration list to a Set, remove duplicate code | Aaron Patterson | 2012-01-13 | 1 | -16/+14 |
| | |||||
* | deprecate the block argument to Migrator#migrate | Aaron Patterson | 2012-01-13 | 1 | -8/+19 |
| | |||||
* | refactor the migrate method to filter migrations before running them | Aaron Patterson | 2012-01-13 | 1 | -25/+32 |
| | |||||
* | use the model to delete records | Aaron Patterson | 2012-01-13 | 1 | -4/+1 |
| | |||||
* | use the schema migration model to create a new record | Aaron Patterson | 2012-01-13 | 1 | -2/+1 |
| | |||||
* | moving migrator tests to a migrator test class | Aaron Patterson | 2012-01-13 | 1 | -38/+41 |
| | |||||
* | add a migration schema model | Aaron Patterson | 2012-01-13 | 1 | -3/+3 |
| | |||||
* | construct a migrator with a list of migrations rather than a list of paths | Aaron Patterson | 2012-01-13 | 1 | -18/+29 |
| | |||||
* | move column ordering tests to it's own class | Aaron Patterson | 2012-01-10 | 1 | -10/+2 |
| | |||||
* | deprecate the subdirectories parameter to `migrations` | Aaron Patterson | 2012-01-10 | 1 | -2/+10 |
| | |||||
* | migrate(:down) method with table_name_prefix | kennyj | 2012-01-11 | 1 | -6/+22 |
| | |||||
* | Remove Array.wrap calls in ActiveRecord | Rafael Mendonça França | 2012-01-06 | 1 | -3/+2 |
| | |||||
* | Allow to filter migrations by passing a block | Piotr Sarnacki | 2011-12-09 | 1 | -9/+13 |
| | | | | | | | | | | Example: ActiveRecord::Migrator.migrate(path) do |migration| migration.name =~ /User/ end The above example will migrate only migrations with User in the name |