Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | |||||
* | Compare migrations for copying only by name and scope | Piotr Sarnacki | 2011-12-09 | 1 | -22/+6 | |
| | ||||||
* | Add suffix for migrations copied from engines | Piotr Sarnacki | 2011-12-09 | 1 | -5/+5 | |
| | ||||||
* | String#to_a is not available in 1.9 | Piotr Sarnacki | 2011-12-09 | 1 | -1/+1 | |
| | ||||||
* | Run also migrations in subdirectories. | Piotr Sarnacki | 2011-12-09 | 1 | -2/+3 | |
| | | | | | With this commit, ActiveRecord will also look for migrations in db/migrate subdirectories. | |||||
* | Ignore origin comment when checking for duplicates on Migration.copy | Piotr Sarnacki | 2011-12-09 | 1 | -2/+20 | |
| | | | | | | | 49ebe51 fixed copying migrations, but existing migrations would still trigger warnings. The proper way to compare migrations is to ignore origin lines - if migration is identical it means that we can silently skip it, regardless where it comes from. | |||||
* | Fix copying migrations from engines | Piotr Sarnacki | 2011-12-09 | 1 | -3/+3 | |
| | | | | | | | | | | There was a bug in ActiveRecord::Migration.copy method, which prevented adding special comment about the origin of migration. Because of that, the check if migration is identical or if it's not and should be skipped was always saying that migration is skipped, which was causing additional useless warnings about skipped migrations. | |||||
* | reversible migration example had missing block parameter | Evgeniy Kelyarsky | 2011-12-07 | 1 | -1/+1 | |
| | ||||||
* | add prefix and suffix to renamed tables, closes #1510 | Vasiliy Ermolovich | 2011-12-06 | 1 | -0/+1 | |
| |