Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Revert "Merge pull request #1163 from amatsuda/sexier_migration_31" | Aaron Patterson | 2011-11-17 | 1 | -120/+0 |
| | | | | | | | | | | This reverts commit 0e407a90413d8a19002b85508d811ccdf2190783, reversing changes made to 533a9f84b035756eedf9fdccf0c494dc9701ba72. Conflicts: activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb activerecord/test/cases/migration_test.rb | ||||
* | Revert "Merge pull request #3603 from vijaydev/change_table_without_block_arg" | Aaron Patterson | 2011-11-17 | 1 | -54/+0 |
| | | | | | | | | | This reverts commit 81fad6a270ec3cbbb88553c9f2e8200c34fd4d13, reversing changes made to 23101de283de13517e30c4c3d1ecc65525264886. Conflicts: activerecord/test/cases/migration_test.rb | ||||
* | Merge pull request #3371 from yahonda/fix_ora_00932_error | Aaron Patterson | 2011-11-14 | 1 | -1/+1 |
|\ | | | | | Fix ORA-00932 error when trying to insert 0 to DATE type columns. | ||||
| * | Fix ORA-00932 error when trying to insert 0 to DATE type columns. | Yasuo Honda | 2011-10-19 | 1 | -1/+1 |
| | | |||||
* | | change_table bulk test case should check if the connection supports bulk alter | Vijay Dev | 2011-11-11 | 1 | -13/+15 |
| | | |||||
* | | Modify change_table to remove the need for the block argument. | Vijay Dev | 2011-11-11 | 1 | -0/+52 |
| | | |||||
* | | Checking the arity of the block passed to create_table | Vijay Dev | 2011-11-10 | 1 | -0/+15 |
| | | | | | | | | | | | | A recent change made to create_table does away with the need for the block argument. Checking the arity will prevent the mixing up of the two syntaxes. | ||||
* | | AR changes to support creating ordered (asc, desc) indexes | Vlad Jebelev | 2011-11-04 | 1 | -0/+12 |
| | | |||||
* | | Merge pull request #1163 from amatsuda/sexier_migration_31 | Aaron Patterson | 2011-11-04 | 1 | -0/+20 |
|\ \ | | | | | | | Sexier migrations | ||||
| * | | Tests for new create_table DSL | Akira Matsuda | 2011-05-20 | 1 | -0/+20 |
| | | | |||||
* | | | assert_match takes a regexp and a string in that order | Vijay Dev | 2011-10-31 | 1 | -1/+1 |
| | | | |||||
* | | | dump_schema_information: explicitly order inserts into schema_migrations table | Laust Rud Jacobsen | 2011-10-31 | 1 | -0/+9 |
| | | | | | | | | | | | | | | | | | | | | | This change reduces churn in the db/development_structure.sql file when using :sql as active_record.schema_format, and makes comparing diffs much easier. Test ensures the output SQL-statements are lexically ordered by version. | ||||
* | | | preserve decimal column attributes after migration | Greg Reinacker | 2011-10-21 | 1 | -0/+36 |
| |/ |/| | |||||
* | | only use now() on pg! | Aaron Patterson | 2011-10-18 | 1 | -1/+3 |
| | | |||||
* | | use now() for dates in pg | Aaron Patterson | 2011-10-18 | 1 | -1/+1 |
| | | |||||
* | | Default timestamps to non-null | Mike Perham | 2011-10-14 | 1 | -5/+5 |
| | | |||||
* | | Changed the default value for the options argument on ↵ | Grant Neufeld | 2011-06-18 | 1 | -0/+12 |
| | | | | | | | | | | | | | | ActiveRecord::ConnectionAdapters::Table#column_exists? from nil to an empty Hash {}. That method calls through to ActiveRecord::ConnectionAdapters::SchemaStatements##column_exists? expects options to be a Hash. When options was nil, an error would occur in cases where the column did exist because the called method attempted to perform a key lookup on options. | ||||
* | | please use ruby -I lib:test path/to/test.rb, or export RUBY_OPT | Aaron Patterson | 2011-06-06 | 1 | -1/+1 |
| | | |||||
* | | Refactor Active Record test connection setup. Please see the ↵ | Jon Leighton | 2011-06-04 | 1 | -1/+1 |
|/ | | | | RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases. | ||||
* | Active Record typos. | R.T. Lechow | 2011-03-05 | 1 | -2/+2 |
| | |||||
* | adjust query counts to be consistent across databases, make sure database ↵ | Aaron Patterson | 2011-02-04 | 1 | -1/+4 |
| | | | | log the same things | ||||
* | Run BulkAlterTableMigrationsTest only when the adapter supports them | Pratik Naik | 2011-01-31 | 1 | -97/+99 |
| | |||||
* | Add :bulk => true option to change_table | Pratik Naik | 2011-01-31 | 1 | -0/+138 |
| | |||||
* | In a number of places in the tests, we only need to turn off transactional ↵ | Jon Leighton | 2011-01-11 | 1 | -2/+1 |
| | | | | fixtures when the DB does not support savepoints. This speeds the test run up by about 8-9% on my computer, when running rake test_sqlite3_mem :) | ||||
* | Fix test on finding migrations from 2 paths | Piotr Sarnacki | 2010-12-09 | 1 | -5/+7 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Allow to run migrations from more than one directory | Piotr Sarnacki | 2010-12-09 | 1 | -0/+12 |
| | |||||
* | removing unused setup | Aaron Patterson | 2010-12-03 | 1 | -4/+0 |
| | |||||
* | in the middle of refactoring | Aaron Patterson | 2010-12-03 | 1 | -50/+30 |
| | |||||
* | rolling out migrated_at until I can fix the build | Aaron Patterson | 2010-12-01 | 1 | -45/+7 |
| | |||||
* | removing duplicate test | Aaron Patterson | 2010-12-01 | 1 | -37/+0 |
| | |||||
* | make sure we have a value in migrated_at | Aaron Patterson | 2010-12-01 | 1 | -1/+1 |
| | |||||
* | not all databases return dates as strings | Aaron Patterson | 2010-12-01 | 1 | -1/+1 |
| | |||||
* | name in schema_migrations, migrations in schema dump | Josh Susser | 2010-12-01 | 1 | -8/+12 |
| | |||||
* | record migration timestamp when migrations run | Josh Susser | 2010-12-01 | 1 | -1/+48 |
| | |||||
* | Add migrated_at column to schema_migrations table. | Josh Susser | 2010-12-01 | 1 | -6/+30 |
| | |||||
* | testing instance based migrations | Aaron Patterson | 2010-11-17 | 1 | -0/+38 |
| | |||||
* | schema migrations work as instances | Aaron Patterson | 2010-11-17 | 1 | -0/+1 |
| | |||||
* | converted migrations to support instance methods | Aaron Patterson | 2010-11-17 | 1 | -4/+4 |
| | |||||
* | fixing assertions so error messages will be more helpful | Aaron Patterson | 2010-11-17 | 1 | -4/+4 |
| | |||||
* | removing many unused variables | Aaron Patterson | 2010-11-16 | 1 | -5/+5 |
| | |||||
* | Create directory before copying migrations if it does not exist | Piotr Sarnacki | 2010-11-16 | 1 | -0/+15 |
| | |||||
* | Fix SQLite adapter name [#5842 state:resolved] | Anil Wadghule | 2010-10-19 | 1 | -4/+4 |
| | |||||
* | Add callback on skipped migration while copying migrations | Piotr Sarnacki | 2010-10-09 | 1 | -2/+20 |
| | |||||
* | Change the method for copying migrations, do not add scope. | Piotr Sarnacki | 2010-10-09 | 1 | -21/+23 |
| | | | | | | | The purpose of this change is to allow copying fail on the same names. Migrations change database and they should be treated with caution, if 2 migrations are named the same it's much better to skip migration and allow user decide if it should be copied or not. | ||||
* | eliminating method_missing on TableDefinition | Aaron Patterson | 2010-09-29 | 1 | -2/+12 |
| | |||||
* | Test add_index and remove_index with a symbol name #4891 | Étienne Barrié | 2010-09-28 | 1 | -0/+7 |
| | |||||
* | Fix remove_index issue when provided :name is a symbol | Tim Connor | 2010-09-26 | 1 | -1/+1 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Fix issue with remove_index and add unit test [#5645 state:resolved] | Tim Connor | 2010-09-18 | 1 | -3/+4 |
| | |||||
* | Fix copying migrations to empty directory | Piotr Sarnacki | 2010-09-03 | 1 | -0/+14 |
| | |||||
* | Implemented ActiveRecord::Migrations#copy based on James Adam's idea | Piotr Sarnacki | 2010-09-03 | 1 | -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 |