Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Merge pull request #7028 from lexmag/join_table_indexes | José Valim | 2012-07-18 | 1 | -3/+17 | |
|\ | | | | | Add indexes to create_join_table method | |||||
| * | Add join table migration generator | Aleksey Magusev | 2012-07-18 | 1 | -3/+17 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | For instance, running rails g migration CreateMediaJoinTable artists musics:uniq will create a migration with create_join_table :artists, :musics do |t| # t.index [:artist_id, :music_id] t.index [:music_id, :artist_id], unique: true end | |||||
* | | Add teardown method to AR::Mig::RenameTableTest | Robb Kidd | 2012-07-10 | 1 | -18/+13 | |
| | | | | | | | | | | | | | | Dry up reseting the renamed table after each test. Also made use of the AR::Base.connection object already available from AR::MigrationTest#connection. | |||||
* | | Merge pull request #6874 from robbkidd/rename_sequences_too | Aaron Patterson | 2012-07-10 | 1 | -0/+13 | |
|\ \ | |/ |/| | Rename default sequence when table is renamed? [AR:postgres] | |||||
| * | Update psql adapter to rename a default pkey sequence when renaming a table. | Robb Kidd | 2012-06-27 | 1 | -0/+13 | |
| | | ||||||
* | | Refactor references schema definitions | Aleksey Magusev | 2012-07-03 | 1 | -16/+12 | |
| | | ||||||
* | | Make references statements reversible | Aleksey Magusev | 2012-07-03 | 1 | -3/+27 | |
| | | ||||||
* | | Add references schema statements | Aleksey Magusev | 2012-07-03 | 2 | -1/+112 | |
| | | | | | | | | | | | | | | | | | | | | Examples: add_reference :products, :supplier, polymorphic: true, index: true remove_reference :products, :user `add_belongs_to` and `remove_belongs_to` are acceptable. | |||||
* | | Use strings for the table names | Rafael Mendonça França | 2012-07-01 | 1 | -1/+1 | |
| | | | | | | | | connection.tables returns an array of strings | |||||
* | | Merge pull request #6914 from lexmag/migration_tests | Rafael Mendonça França | 2012-07-01 | 2 | -37/+11 | |
|\ \ | | | | | | | Refactor migration test_helper | |||||
| * | | Refactor migration test_helper | Aleksey Magusev | 2012-07-01 | 2 | -37/+11 | |
| |/ | | | | | | | and create_join_table_test | |||||
* / | Add more options to column_exists? method | Aleksey Magusev | 2012-06-30 | 1 | -6/+12 | |
|/ | | | | Also fix failures in check options for nil | |||||
* | TimeZone format is always /[+-]\d{2}:\d{2}/ in Ruby 1.9 | Akira Matsuda | 2012-06-12 | 1 | -1/+1 | |
| | ||||||
* | Skip two tests with polymorphic if current adapter is Oracle Adapter. | Yasuo Honda | 2012-06-08 | 1 | -0/+3 | |
| | | | | because Oracle Adapter does not support foreign keys if :polymorphic => true is used. | |||||
* | port some mocha to minitest/mock | Aaron Patterson | 2012-05-18 | 1 | -0/+221 | |
| | ||||||
* | Integer limit out of range should be allowed to raise. Closes #6272 | Erich Menge | 2012-05-16 | 2 | -4/+10 | |
| | ||||||
* | remove calls to find(:first), find(:last) and find(:all) | Jon Leighton | 2012-04-26 | 2 | -6/+6 | |
| | ||||||
* | Automatically create indexes for references/belongs_to statements in migrations. | Joshua Wood | 2012-04-14 | 1 | -0/+99 | |
| | ||||||
* | improved test case for partial indices | Marcelo Silveira | 2012-02-09 | 1 | -6/+9 | |
| | ||||||
* | Made schema dumper recognize partial indices' where statements | Marcelo Silveira | 2012-02-09 | 1 | -0/+6 | |
| | ||||||
* | columns method doesn't have name argument | Rafael Mendonça França | 2012-02-02 | 1 | -5/+4 | |
| | ||||||
* | Add `create_join_table` migration helper to create HABTM join tables | Rafael Mendonça França | 2012-01-27 | 3 | -1/+82 | |
| | ||||||
* | Handle nil in add_index :length option in MySQL | Paul Sadauskas | 2012-01-24 | 1 | -1/+7 | |
| | | | | | | | | | | | | | | | | | Our schema.rb is being generated with an `add_index` line similar to this: add_index "foo", ["foo", "bar"], :name => "xxx", :length => {"foo"=>8, "bar=>nil} This is the same as it was on Rails 3.1.3, however, now when that schema.rb is evaluated, its generating bad SQL in MySQL: Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '))' at line 1: CREATE UNIQUE INDEX `xxx` ON `foo` (`foo`(8), `bar`()) This commit adds a check for nil on the length attribute to prevent the empty parens from being output. | |||||
* | disable transactions for this test | Aaron Patterson | 2012-01-17 | 1 | -1/+4 | |
| | ||||||
* | silencing migrator tests, refactoring the migration test helper | Aaron Patterson | 2012-01-16 | 1 | -0/+9 | |
| | ||||||
* | Fix ActiveRecord mysql tests | Piotr Sarnacki | 2012-01-16 | 1 | -1/+2 | |
| | | | | | | | | | TL;DR: MySQL sucks. Since it does not support transactions for schema changes, when you run `create_table` in setup block, it will commit current transaction. Now tests want to run `RELEASE SAVEPOINT` after finishing tests which fails since there is no transaction. | |||||
* | make sure the migration table is alive and empty | Aaron Patterson | 2012-01-13 | 1 | -0/+11 | |
| | ||||||
* | test code that finds migrations | Aaron Patterson | 2012-01-13 | 1 | -0/+4 | |
| | ||||||
* | removing migration files as they are no longer needed | Aaron Patterson | 2012-01-13 | 1 | -2/+2 | |
| | ||||||
* | fixing test class name | Aaron Patterson | 2012-01-13 | 2 | -2/+2 | |
| | ||||||
* | adding a test class for table renaming | Aaron Patterson | 2012-01-13 | 2 | -0/+78 | |
| | ||||||
* | moving more column renaming tests | Aaron Patterson | 2012-01-13 | 1 | -0/+75 | |
| | ||||||
* | moving more renaming tests to the proper test case | Aaron Patterson | 2012-01-13 | 2 | -0/+71 | |
| | ||||||
* | moving rename column tests to their own class | Aaron Patterson | 2012-01-13 | 3 | -17/+125 | |
| | ||||||
* | moving column attributes tests to their own class | Aaron Patterson | 2012-01-13 | 1 | -0/+174 | |
| | ||||||
* | move another index related test case | Aaron Patterson | 2012-01-13 | 2 | -70/+68 | |
| | ||||||
* | move tests regarding index modification to their own class | Aaron Patterson | 2012-01-13 | 2 | -84/+102 | |
| | ||||||
* | decoupling more tests from AR::Base | Aaron Patterson | 2012-01-13 | 1 | -0/+45 | |
| | ||||||
* | move more schema modification tests | Aaron Patterson | 2012-01-13 | 1 | -0/+70 | |
| | ||||||
* | remove dependency on the filesystem | Aaron Patterson | 2012-01-13 | 1 | -3/+8 | |
| | ||||||
* | moving logger test to its own file | Aaron Patterson | 2012-01-13 | 1 | -0/+17 | |
| | ||||||
* | moving the table and index test to it's own file | Aaron Patterson | 2012-01-12 | 1 | -0/+24 | |
| | ||||||
* | adding missing require | Aaron Patterson | 2012-01-10 | 1 | -0/+2 | |
| | ||||||
* | move column ordering tests to it's own class | Aaron Patterson | 2012-01-10 | 2 | -46/+58 | |
| | ||||||
* | refactoring migration test | Aaron Patterson | 2012-01-10 | 1 | -0/+414 | |
| | ||||||
* | Fix GH #4285. Remove options when we record calling creat_table | kennyj | 2012-01-04 | 1 | -0/+6 | |
| | ||||||
* | Fixed bad options order in ↵ | jbbarth | 2011-08-28 | 1 | -2/+2 | |
| | | | | ActiveRecord::Migration::CommandRecorder#invert_rename_index | |||||
* | Reversing the changes done in c278a2c while still resolving #1857. | Vijay Dev | 2011-07-02 | 1 | -5/+3 | |
| | | | | | | | | | The changes broke bulk migration tests and were fixed in 4d256bc6; however that brought back the issue of #1857 and so this commit goes back to the original scenario and just adds change_table to the list of methods which are to be recorded in the CommandRecorder. The method_missing now delegates all calls to the underlying connection as before. | |||||
* | CommandRecorder should delegate in method_missing where possible. Fixes some ↵ | Jon Leighton | 2011-06-30 | 1 | -1/+6 | |
| | | | | tests in migration_test.rb under mysql. The problem was introduced in c278a2c5e109204ec8a47fcbfdfc327aad7996ce. | |||||
* | record unsupported methods in CommandRecorder instead of letting the ↵ | Vijay Dev | 2011-06-25 | 1 | -3/+5 | |
| | | | | unsupported methods go through to the underlying db causing errors like duplicate columns to occur when rolling back migrations |