aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/migration_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* eliminating method_missing on TableDefinitionAaron Patterson2010-09-291-2/+12
|
* Test add_index and remove_index with a symbol name #4891Étienne Barrié2010-09-281-0/+7
|
* Fix remove_index issue when provided :name is a symbolTim Connor2010-09-261-1/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Fix issue with remove_index and add unit test [#5645 state:resolved]Tim Connor2010-09-181-3/+4
|
* Fix copying migrations to empty directoryPiotr Sarnacki2010-09-031-0/+14
|
* Implemented ActiveRecord::Migrations#copy based on James Adam's ideaPiotr Sarnacki2010-09-031-0/+111
| | | | | | | | | | | | | | | ActiveRecord::Migration#copy allows to copy migrations from one place to another, changing migrations versions and adding scope to filename. For example: ActiveRecord::Migration.copy("db/migrate", :blog_engine => "vendor/gems/blog/db/migrate") will copy all migrations from vendor/gems/blog/db/migrate to db/migrate with such format: Versions of copied migrations will be reversioned to be appended after migrations that already exists in db/migrate
* reload bob after his journy to a new timezoneBrian Lopez2010-08-201-0/+1
|
* Makes topics.written_on null => true back again some tests rely on thatSantiago Pastorino2010-08-151-0/+3
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-2/+2
| | | | 's/[ \t]*$//' -i {} \;)
* update tests for mysql2 supportBrian Lopez2010-08-021-6/+6
|
* Tests to specify the behaviour of ActiveRecord::Migrator.get_all_versions() ↵Thiago Pradi2010-07-081-0/+14
| | | | | | [#5066 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Test that adding an index also doesn't raise an exception.J. Pablo Fernández2010-06-291-1/+1
| | | | | | [#4809 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Replaced statement in comment with an assertionPaul Barry2010-06-291-2/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Fixed error when removing an index from a table name values, which is a ↵J. Pablo Fernández2010-06-291-0/+16
| | | | | | reserved word, with test. Signed-off-by: José Valim <jose.valim@gmail.com>
* Add column and index query methods to ActiveRecord::SchemaAndrew White2010-06-261-4/+104
| | | | | | [#4219 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* remove_column should raise an ArgumentError when no columns are passed ↵Jeff Dean2010-06-231-0/+4
| | | | | | [#4803 state:resolved] Signed-off-by: Michael Koziarski <michael@koziarski.com>
* use assert_in_delta() for floating point comparisons in tests [#4871 ↵Aaron Patterson2010-06-161-1/+1
| | | | | | state:resolved] Signed-off-by: Carl Lerche <carllerche@mac.com>
* SQLite2Adapter doesn't existSantiago Pastorino2010-06-091-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* test fixes for Oracle enhanced adapter:Raimonds Simanovskis2010-06-041-2/+2
| | | | | latest oracle_enhanced adapter does automatic shortening of index names ignore select from all_triggers table in assert_queries
* Oracle enhanced adapter now supports shortening of default generated index ↵Raimonds Simanovskis2010-06-041-12/+10
| | | | names, some additional tests now pass
* Reduced size of table name prefix and suffix in migrations test as in Oracle ↵Raimonds Simanovskis2010-06-041-3/+4
| | | | identifier name cannot be larger than 30 characters
* Final iteration of use better testing methodsNeeraj Singh2010-05-191-1/+1
| | | | | | [#4652 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Revert "Don't carry default value when changing column for a binary type on ↵Jeremy Kemper2010-05-181-12/+0
| | | | | | | | | | | | | | MySQL" Broke mysql tests. This reverts commit edec1afe25014749f0e2df86d27477b45586a9e3. Conflicts: activerecord/test/cases/migration_test.rb [#3234 state:open]
* make add_index and remove_index more resilient; new rename_index method; ↵Étienne Barrié2010-05-181-0/+34
| | | | | | | | track database limits [#3452 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Postgresql doesn't allow to change a string type column to a binary type. ↵Wijnand Wiersma2010-05-161-7/+9
| | | | | | Skip this test for postgresql for now. [#4616 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Don't carry default value when changing column for a binary type on MySQL ↵Elomar França2010-05-161-0/+10
| | | | | | [#3234 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Revert "Revert "Add index length support for MySQL [#1852 state:open]""Pratik Naik2010-05-091-0/+8
| | | | This reverts commit 6626833db13a69786f9f6cd56b9f53c4017c3e39.
* Revert "Add index length support for MySQL [#1852 state:open]"José Valim2010-05-081-8/+0
| | | | | | | | | | | | | This commit breaks dumping a few tables, as the sessions table. To reproduce, just create a new application and: rake db:sessions:create rake db:migrate rake db:test:prepare And then look at the db/schema.rb file (ht: Sam Ruby). This reverts commit 5b95730edc33ee97f53da26a3868eb983305a771.
* Add index length support for MySQL [#1852 state:resolved]Emili Parreno2010-05-081-0/+8
| | | | | | | | | | | | Example: add_index(:accounts, :name, :name => 'by_name', :length => 10) => CREATE INDEX by_name ON accounts(name(10)) add_index(:accounts, [:name, :surname], :name => 'by_name_surname', :length => {:name => 10, :surname => 15}) => CREATE INDEX by_name_surname ON accounts(name(10), surname(15)) Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* making rake:migrate VERSION=0 a noop called in succession. [#2137 ↵Neeraj Singh2010-04-291-0/+19
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* clear the rest of the warnings, run with warnings turned on [#4332 ↵Aaron Patterson2010-04-101-25/+39
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* expand migration paths before requiring them. [#4240 state:resolved]Aaron Patterson2010-03-231-0/+13
| | | | Signed-off-by: wycats <wycats@gmail.com>
* do not use unloadable constants in tests [#4260 state:resolved]Aaron Patterson2010-03-231-2/+1
| | | | Signed-off-by: wycats <wycats@gmail.com>
* cleaning up a bunch of parse time warnings in AR [#4186 state:resolved]Aaron Patterson2010-03-151-2/+2
| | | | Signed-off-by: wycats <wycats@gmail.com>
* Add test case for unable to run migration if ActiveRecord::Base.logger is ↵Prem Sichanugrist2010-02-021-0/+10
| | | | | | nil (#3434) Signed-off-by: José Valim <jose.valim@gmail.com>
* Add support for Mysql column positioning via #add_column and #change_columnBen Marini2009-12-031-0/+47
| | | | | | | | | | | | | | add_column and change_column in the Mysql adapter now accept some additional options: :first => true # Put the column in front of all the columns :after => column_name # Put the colmn after 'column_name' add_column :new_col, :string, :first => true add_column :another_col, :integer, :default => 0, :after => :new_col [#3286 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Add tests for scoping schema_migrations index by global table prefix and suffixCristi Balan2009-08-091-0/+18
| | | | | | [#1543 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* PostgreSQL: XML datatype supportLeonardo Borges2009-08-091-9/+19
| | | | | | [#1874 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix that creating a table whose primary key prefix type is :table_name ↵Morgan Schweers2009-08-091-2/+2
| | | | | | | | generates an incorrectly pluralized primary key. [#872 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Add rake db:forward - opposite of db:rollback [#768 state:resolved]Cristi Balan2009-08-081-0/+11
| | | | | | | | Example: rake db:forward # performs the next migration rake db:forward STEP=4 # performs the next 4 migrations Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Don't rely on T::U::TestCase#nameJeremy Kemper2009-08-071-4/+5
|
* Oracle adapter gets Time or DateTime value already with timezoneRaimonds Simanovskis2009-08-061-17/+46
|
* Fixed a bug where create_table could not be called without a block [#2221 ↵Joseph Wilk2009-06-211-0/+7
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure table names are quoted while renaming for sqlite3 adapter [#2272 ↵Brian Hogan2009-06-211-0/+26
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* SQLite adapters now support DDL transactions [#2080 state:resolved]Jason King2009-03-141-1/+25
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ruby 1.9 compat: rename deprecated assert_raises to assert_raise.Jeremy Kemper2009-03-081-13/+13
| | | | [#1617 state:resolved]
* Fixed broken migrations tests: added assert_equal. [#1704 state:resolved]Marcello Nuccio2009-03-071-7/+7
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha.Jeremy Kemper2009-02-031-216/+208
|
* Remove SQL Server cases from tests for latest adapter work to pass rails ↵Ken Collins2008-11-191-7/+3
| | | | | | expected behavior. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Deal with MySQL's quirky handling of defaults and blob/text columnsFrederick Cheung2008-09-141-1/+5
| | | | | | [#1043 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>