Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge branch 'master' of github.com:rails/docrails | Vijay Dev | 2015-10-04 | 1 | -1/+1 |
|\ | |||||
| * | [ci skip] Fix comment | yui-knk | 2015-10-02 | 1 | -1/+1 |
| | | | | | | | | | | `alias :migrations_path= :migrations_paths=`, so `migrations_path = some_string` is correct. | ||||
* | | Fix minor docs [ci skip] | amitkumarsuroliya | 2015-09-28 | 1 | -1/+1 |
|/ | |||||
* | remove dead code. | Yves Senn | 2015-09-09 | 1 | -4/+0 |
| | | | | | | The last call site of `last_version` was removed with: 838e18321118ee3ec6669217e5ea0216f79c969a | ||||
* | remove dead code. | Yves Senn | 2015-09-09 | 1 | -4/+0 |
| | | | | This method is private API and never used. Let's remove it. | ||||
* | Make ActiveRecordException descendants args optional | Pavel Pravosud | 2015-09-07 | 1 | -12/+30 |
| | | | | | | This change allows to instantiate all ActiveRecordError descendant execption classes without arguments, which might be useful in testing and is far less surprising than mandatory arguments. | ||||
* | Merge pull request #21412 from yui-knk/feature/irreversible_migration_error_msg | Yves Senn | 2015-09-04 | 1 | -1/+71 |
|\ | | | | | | | Add detailed error message to `IrreversibleMigration` | ||||
| * | [ci skip] Add comments for `IrreversibleMigration` | yui-knk | 2015-08-29 | 1 | -0/+70 |
| | | |||||
* | | Merge branch 'master' of github.com:rails/docrails | Vijay Dev | 2015-08-30 | 1 | -1/+1 |
|\ \ | |/ |/| | |||||
| * | [ci skip] Fix file name generated by `rails generate` | yui-knk | 2015-08-24 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #21336 from yui-knk/refactor/to_use_getter | Rafael Mendonça França | 2015-08-26 | 1 | -7/+7 |
|\ \ | | | | | | | Use `ActiveRecord::Migration#connection` instead of `@connection` | ||||
| * | | Use `ActiveRecord::Migration#connection` instead of `@connection` | yui-knk | 2015-08-23 | 1 | -7/+7 |
| | | | | | | | | | | | | | | | `ActiveRecord::Migration` has `connetion` method so replace to use `connection` method to get `@connection` as much as possible | ||||
* | | | [ci skip] Fix migration file's timestamp | yui-knk | 2015-08-24 | 1 | -1/+1 |
| |/ |/| | | | | | In rails generally migration file's timestamp is "YYYYMMDDHHMMSS". | ||||
* | | Remove not used a block argument (`&block`) | yui-knk | 2015-08-23 | 1 | -1/+1 |
|/ | |||||
* | better docs for `disable_ddl_transaction!`. Closes #21044. | Yves Senn | 2015-08-21 | 1 | -1/+4 |
| | |||||
* | Merge pull request #21283 from ravindrakumawat/add_docs_for_pending_migration | Yves Senn | 2015-08-18 | 1 | -0/+1 |
|\ | | | | | Add Docs for ActiveRecord #check_pending [ci skip] | ||||
| * | Add Docs for ActiveRecord #check_pending [ci skip] | ravindra kumar kumawat | 2015-08-18 | 1 | -0/+1 |
| | | |||||
* | | better docs for ActiveRecord::Migration#table_name_options | Brendan Buckingham | 2015-08-06 | 1 | -1/+3 |
| | | |||||
* | | Add table name prefix and suffix support to add_foreign_key and ↵ | Mehmet Emin İNAÇ | 2015-06-25 | 1 | -1/+2 |
| | | | | | | | | | | | | remove_foreign_key methods fix tests | ||||
* | | Merge pull request #20259 from rastasheep/rastasheep-patch-1 | Yves Senn | 2015-06-19 | 1 | -2/+2 |
|\ \ | | | | | | | | | | Update documentation for ActiveRecord::Migration#remove_index | ||||
| * | | Fix typo [ci skip] | Aleksandar Diklic | 2015-05-22 | 1 | -2/+2 |
| |/ | | | | | | | `remove_index` works with multiple column names as `add_index` | ||||
* | | Merge pull request #20550 from maurogeorge/add_reference-rdoc | Yves Senn | 2015-06-15 | 1 | -0/+3 |
|\ \ | |/ |/| | | | | | | | Add RDoc about add_reference to ActiveRecord::Migration [ci skip] | ||||
| * | Add RDoc about add_reference to ActiveRecord::Migration | Mauro George | 2015-06-13 | 1 | -0/+6 |
|/ | | | | [ci skip] | ||||
* | [ci skip] Remove comments about Rails 3.1 | claudiob | 2015-05-11 | 1 | -15/+0 |
| | | | | | | | | | Stems from https://github.com/rails/rails/pull/20105#issuecomment-100900939 where @senny said: > From my point of view, all the docs (guides, API) are version bound. > They should describe that version and continue to be available when newer versions are released. > The cross referencing can be done by the interested user. | ||||
* | [ci skip] Fix comment, since Rails 3.1 is out | claudiob | 2015-05-11 | 1 | -2/+1 |
| | |||||
* | Fix typo [ci skip] | Luke Hutscal | 2015-02-23 | 1 | -1/+1 |
| | | | | I think this was supposed to be "roundTrip". | ||||
* | fix column name in migration example [ci skip] | Daniël de Vries | 2015-02-19 | 1 | -1/+1 |
| | |||||
* | Do not check only for the Rails constant | Rafael Mendonça França | 2015-01-02 | 1 | -1/+1 |
| | | | | | This constant may be define for auxiliar gems like rails-html-sanitizer and these methods call will fail. | ||||
* | Pass symbol as an argument instead of a block | Erik Michaels-Ober | 2014-11-29 | 1 | -1/+1 |
| | |||||
* | bring back `db:test:prepare`. | Yves Senn | 2014-11-25 | 1 | -1/+8 |
| | | | | | | | | | | | | | | | This reverts deprecations added in #13528. The task is brought back for two reasons: 1. Give plugins a way to hook into the test database initialization process 2. Give the user a way to force a test database synchronization While `test:prepare` is still a dependency of every test task, `db:test:prepare` no longer hooks into it. This means that `test:prepare` runs before the schema is synchronized. Plugins, which insert data can now hook into `db:test:prepare`. The automatic schema maintenance can't detect when a migration is rolled-back, modified and reapplied. In this case the user has to fall back to `db:test:prepare` to force the synchronization to happen. | ||||
* | cleanup, remove trailing whitespace [ci skip] | Yves Senn | 2014-11-24 | 1 | -2/+2 |
| | |||||
* | 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 |
| | |