Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Alias refute methods to assert_not and perfer assert_not on tests | Rafael Mendonça França | 2012-12-31 | 1 | -3/+3 |
| | |||||
* | Deprecate passing a string as third argument of `add_index` | Rafael Mendonça França | 2012-11-02 | 1 | -0/+10 |
| | | | | | | | This was there due historical reasons since 7dc45818dc43c163700efc9896a0f3feafa31138 to give the user the possibility to create unique indexes passing "UNIQUE" as the third argument | ||||
* | Raise an ArgumentError when passing an invalid option to add_index | Rafael Mendonça França | 2012-11-02 | 1 | -0/+6 |
| | | | | Closes #8104 | ||||
* | 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 |
| | |||||
* | 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. | ||||
* | move another index related test case | Aaron Patterson | 2012-01-13 | 1 | -0/+68 |
| | |||||
* | move tests regarding index modification to their own class | Aaron Patterson | 2012-01-13 | 1 | -0/+102 |