Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #18662 from estum/foreign-key-exists | Yves Senn | 2015-02-16 | 1 | -0/+21 |
|\ | | | | | | | Add `foreign_key_exists?` method. | ||||
| * | Add `foreign_key_exists?` method. | Anton | 2015-01-24 | 1 | -0/+21 |
| | | |||||
* | | tests, remove unused requires. | Yves Senn | 2015-02-12 | 1 | -1/+0 |
| | | | | | | | | | | | | "active_support/testing/stream" is already required in `test_case.rb`. Furthermore the test "test/cases/migration_test.rb" could no longer be executed directly. | ||||
* | | Merge pull request #18526 from vipulnsward/add-silence-stream | Rafael Mendonça França | 2015-02-05 | 1 | -11/+2 |
|\ \ | | | | | | | Extracted silence_stream method to new module in activesupport/testing | ||||
| * | | - Extracted silence_stream method to new module in activesupport/testing. | Vipul A M | 2015-01-20 | 1 | -11/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added include for the same in ActiveSupport::Test. - Removed occurrences of silence_stream being used elsewhere. - Reordered activesupport testcase requires alphabetically. - Removed require of silence stream from test_case - Moved quietly method to stream helper - Moved capture output to stream helper module and setup requires for the same elsewhere | ||||
* | | | Generate consistent names for foreign keys | Chris Sinjakli | 2015-02-03 | 1 | -2/+2 |
| |/ |/| | |||||
* | | tests, use `drop_table if_exists: true` in our test suite. | Yves Senn | 2015-01-20 | 1 | -2/+2 |
|/ | |||||
* | Use IO::NULL always | Nobuyoshi Nakada | 2015-01-10 | 1 | -1/+1 |
| | |||||
* | Remove deprecated methods at `Kernel`. | Rafael Mendonça França | 2015-01-04 | 1 | -1/+13 |
| | | | | `silence_stderr`, `silence_stream`, `capture` and `quietly`. | ||||
* | Support symbol foreign key to delete | dtaniwaki | 2014-11-19 | 1 | -0/+8 |
| | |||||
* | Force table creation in tests | Sean Griffin | 2014-11-17 | 1 | -2/+2 |
| | | | | | | If something causes the teardown block to not get run (errors, interrupting test runs), we have to manually delete them, which is a pain. | ||||
* | Replace drop sql statement to drop_table method | Yasuo Honda | 2014-09-11 | 1 | -2/+2 |
| | | | | to drop sequences at the same time each tables dropped for Oracle | ||||
* | Remove 'if exists' from drop table statement then use `table_exists?` | Yasuo Honda | 2014-09-03 | 1 | -2/+2 |
| | | | | | Since 'drop table if exists' statement does not always work with some databases such as Oracle. | ||||
* | fk: use random digest names | Yves Senn | 2014-06-26 | 1 | -14/+17 |
| | | | | | | The name of the foreign key is not relevant from a users perspective. Using random names resolves the urge to rename the foreign key when the respective table or column is renamed. | ||||
* | fk: raise for invalid :on_update / :on_delete values | Yves Senn | 2014-06-26 | 1 | -0/+10 |
| | |||||
* | fk: `add/remove_foreign_key` are noop for adapters that don't support fk | Yves Senn | 2014-06-26 | 1 | -0/+24 |
| | |||||
* | fk: raise when identifiers are longer than `allowed_index_name_length`. | Yves Senn | 2014-06-26 | 1 | -0/+9 |
| | |||||
* | fk: support for on_update | Yves Senn | 2014-06-26 | 1 | -3/+13 |
| | |||||
* | fk: rename `dependent` to `on_delete` | Yves Senn | 2014-06-26 | 1 | -13/+13 |
| | |||||
* | fk: infere column name from table names. | Yves Senn | 2014-06-26 | 1 | -2/+24 |
| | | | | This allows to create and remove foreign keys without specifying a column. | ||||
* | fk: make `add_foreign_key` reversible. | Yves Senn | 2014-06-26 | 1 | -0/+19 |
| | |||||
* | fk: support dependent option (:delete, :nullify and :restrict). | Yves Senn | 2014-06-26 | 1 | -0/+42 |
| | |||||
* | fk: dump foreign keys to schema.rb | Yves Senn | 2014-06-26 | 1 | -0/+7 |
| | | | | respect `table_name_prefix` and `table_name_suffix`. | ||||
* | fk: `:primary_key` option for non-standard pk's. | Yves Senn | 2014-06-26 | 1 | -0/+20 |
| | |||||
* | fk: generalize using `AlterTable` and `SchemaCreation`. | Yves Senn | 2014-06-26 | 1 | -2/+4 |
| | |||||
* | fk: `foreign_keys`, `add_foreign_key` and `remove_foreign_key` for MySQL | Yves Senn | 2014-06-26 | 1 | -0/+5 |
| | |||||
* | fk: add `foreign_keys` for PostgreSQL adapter. | Yves Senn | 2014-06-26 | 1 | -7/+27 |
| | |||||
* | fk: `add_foreign_key` and `remove_foreign_key` for PostgreSQL adapter. | Yves Senn | 2014-06-26 | 1 | -0/+49 |