aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/migration.rb
Commit message (Collapse)AuthorAgeFilesLines
* stop raising so many exceptionsAaron Patterson2012-11-071-1/+5
|
* Fixed grammar in migration pending error.Steve Klabnik2012-11-021-1/+1
|
* Make caller attribute in deprecation methods optionalAlexey Gaziev2012-10-301-1/+1
|
* Provide a call stack for deprecation warnings where needed.Nikita Afanasenko2012-10-291-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 schneems2012-10-281-1/+3
| | | | | Conversation from: #6665 cc/ @rafaelfranca
* Fix missing typewriter tagLincoln Lee2012-10-081-1/+1
|
* fix example in Migration docs [ci skip]Francesco Rodriguez2012-09-301-1/+1
|
* add change_table transformation to Migration docs [ci skip]Francesco Rodriguez2012-09-301-16/+19
|
* Revert "Remove update_attribute."Rafael Mendonça França2012-08-251-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 FieldsThomas Klemm2012-08-041-1/+1
| | | A Boolean field will accept true or false as defaults instead of 0 / 1.
* load active_support/deprecation in active_support/railsXavier Noria2012-08-021-1/+0
|
* load active_support/core_ext/module/delegation in active_support/railsXavier Noria2012-08-021-1/+0
|
* Remove update_attribute.Steve Klabnik2012-06-141-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 messageRafael Mendonça França2012-06-101-1/+1
|
* Build fix broken here 03f2249153ae4d2078646e6796d8b9e5ef747fbaArun Agrawal2012-06-101-1/+1
|
* Use . instead of :: for class methods, add CHANGELOG entriesJosé Valim2012-06-101-2/+2
|
* raise error for pending migration schneems2012-06-091-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 migrationsschneems2012-06-031-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.kennyj2012-05-291-1/+0
|
* moving verbosity tests to the migrator test, removing ddl changesAaron Patterson2012-01-161-2/+1
|
* silencing migrator tests, refactoring the migration test helperAaron Patterson2012-01-161-1/+2
|
* refactor schema migration table creation to the schema migration modelAaron Patterson2012-01-131-1/+1
|
* convert the migration list to a Set, remove duplicate codeAaron Patterson2012-01-131-16/+14
|
* deprecate the block argument to Migrator#migrateAaron Patterson2012-01-131-8/+19
|
* refactor the migrate method to filter migrations before running themAaron Patterson2012-01-131-25/+32
|
* use the model to delete recordsAaron Patterson2012-01-131-4/+1
|
* use the schema migration model to create a new recordAaron Patterson2012-01-131-2/+1
|
* moving migrator tests to a migrator test classAaron Patterson2012-01-131-38/+41
|
* add a migration schema modelAaron Patterson2012-01-131-3/+3
|
* construct a migrator with a list of migrations rather than a list of pathsAaron Patterson2012-01-131-18/+29
|
* move column ordering tests to it's own classAaron Patterson2012-01-101-10/+2
|
* deprecate the subdirectories parameter to `migrations`Aaron Patterson2012-01-101-2/+10
|
* migrate(:down) method with table_name_prefixkennyj2012-01-111-6/+22
|
* Remove Array.wrap calls in ActiveRecordRafael Mendonça França2012-01-061-3/+2
|
* Allow to filter migrations by passing a blockPiotr Sarnacki2011-12-091-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 scopePiotr Sarnacki2011-12-091-22/+6
|
* Add suffix for migrations copied from enginesPiotr Sarnacki2011-12-091-5/+5
|
* String#to_a is not available in 1.9Piotr Sarnacki2011-12-091-1/+1
|
* Run also migrations in subdirectories.Piotr Sarnacki2011-12-091-2/+3
| | | | | With this commit, ActiveRecord will also look for migrations in db/migrate subdirectories.
* Ignore origin comment when checking for duplicates on Migration.copyPiotr Sarnacki2011-12-091-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 enginesPiotr Sarnacki2011-12-091-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 parameterEvgeniy Kelyarsky2011-12-071-1/+1
|
* add prefix and suffix to renamed tables, closes #1510Vasiliy Ermolovich2011-12-061-0/+1
|
* document fix: remove_column takes multiple column_namesAkira Matsuda2011-11-071-2/+2
|
* AR changes to support creating ordered (asc, desc) indexesVlad Jebelev2011-11-041-2/+3
|
* Make it the responsibility of the connection to hold onto an ARel visitor ↵Jon Leighton2011-08-081-3/+3
| | | | for generating SQL. This improves the code architecture generally, and solves some problems with marshalling. Adapter authors please take note: you now need to define an Adapter.visitor_for method, but it degrades gracefully with a deprecation warning for now.
* add a migrate class method and delegate to the new instanceAaron Patterson2011-08-021-1/+4
|
* Support backwards compatible interface for migration down/up with rails 3.0.x.Christopher Meiklejohn2011-08-021-0/+1
|
* Explicitly require Active Support dependenciesNorman Clarke2011-07-191-0/+2
| | | | | | | | | | | | This fixes errors when using Active Record outside of Rails. In Rails, these files are required by other classes that are always loaded, so this error does not happen. Without core_ext/module/delegation, a NoMethodError is raised because `delegate` remains undefined. Without core_ext/class/attribute_acessors, an ArgumentError is raised because `delegate` does not receive a value for its :to option.
* minor changesVijay Dev2011-06-271-2/+2
|