Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Stop showing deprecations for Ruby 1.8.7 with remove_column | Carlos Antonio da Silva | 2012-05-09 | 1 | -2/+4 |
| | | | | | String is Enumerable in 1.8.7, which means that passing a String to remove_column was generating deprecation warnings during tests. | ||||
* | Deprecate remove_column with array as an argument | Piotr Sarnacki | 2012-05-02 | 1 | -0/+6 |
| | |||||
* | revert setting NOT NULL constraints in add_timestamps | Xavier Noria | 2012-03-01 | 1 | -2/+2 |
| | | | | | | | | | | | Commit 3dbedd2 added NOT NULL constraints both to table creation and modification. For creation the new default makes sense, but the generic situation for changing a table is that there exist records. Those records have no creation or modification timestamps, and in the general case you don't even know them, so when updating a table these constraints are not going to work. See a bug report for this use case in #3334. | ||||
* | Revert "No need to pass options which is never used" | Rafael Mendonça França | 2012-02-26 | 1 | -2/+2 |
| | | | | | | | | | Options is needed for some Rails extensions to determine when referential integrity should be disabled This reverts commit bcb466c543451dce69403aaae047295758589d8e. Fixes #5052 | ||||
* | Fix Issue #4819 | densya203 | 2012-02-04 | 1 | -1/+1 |
| | | | | | | 'uninitialized constant ActiveRecord::Deprecation in Rails3.2.1' Just a typo of 'ActiveSupport::...' | ||||
* | Document that index names are made up of all columns, not just the first. | Jo Liss | 2011-12-29 | 1 | -9/+2 |
| | | | | | | | | | | | index_name has been using the following expression "index_#{table_name}_on_#{Array.wrap(options[:column]) * '_and_'}" since at least 2006 (bc7f2315), and that's how they come out in my DB. Please check that this is correct before merging into master, perhaps I'm misunderstanding the section I changed. | ||||
* | Revert naive O(1) table_exists? implementation. | Jon Leighton | 2011-12-13 | 1 | -6/+1 |
| | | | | | | | | | | It was a bad idea to rescue exceptions here. This can interfere with transaction rollbacks which seems to be the cause of current CI failure. Instead, each adapter should implement its own DB-specific O(1) implementation, and we fall back on the generic, slower, implementation otherwise. | ||||
* | don't need a begin / end. | Aaron Patterson | 2011-12-09 | 1 | -6/+4 |
| | |||||
* | squelch table exists? queries. | Aaron Patterson | 2011-12-09 | 1 | -1/+1 |
| | |||||
* | Quitoting the table name before querying. | Aaron Patterson | 2011-12-05 | 1 | -1/+1 |
| | |||||
* | Speed up table_exists? for databases with a large number of tables | Jade Rubick | 2011-12-05 | 1 | -1/+6 |
| | | | | | | At New Relic, we have hundreds of thousands of tables, and our migrations took 30 minutes without this similar patch. This cuts it down to a more reasonable amount of time. The rescue false part is ugly, but necessary as far as I can tell. I don't know of a cross-database statement you can make that will work without trapping errors. | ||||
* | Deprecate set_primary_key in favour of self.primary_key= | Jon Leighton | 2011-11-29 | 1 | -1/+1 |
| | |||||
* | Revert "Merge pull request #1163 from amatsuda/sexier_migration_31" | Aaron Patterson | 2011-11-17 | 1 | -8/+2 |
| | | | | | | | | | | 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 | -12/+7 |
| | | | | | | | | | This reverts commit 81fad6a270ec3cbbb88553c9f2e8200c34fd4d13, reversing changes made to 23101de283de13517e30c4c3d1ecc65525264886. Conflicts: activerecord/test/cases/migration_test.rb | ||||
* | Adding a deprecation warning for use of the schema_info table. | Aaron Patterson | 2011-11-16 | 1 | -0/+2 |
| | |||||
* | Modify change_table to remove the need for the block argument. | Vijay Dev | 2011-11-11 | 1 | -7/+12 |
| | |||||
* | Checking the arity of the block passed to create_table | Vijay Dev | 2011-11-10 | 1 | -1/+7 |
| | | | | | | 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 | -1/+29 |
| | |||||
* | Merge pull request #1163 from amatsuda/sexier_migration_31 | Aaron Patterson | 2011-11-04 | 1 | -2/+2 |
|\ | | | | | Sexier migrations | ||||
| * | No "t." for the migration DSL! | Akira Matsuda | 2011-05-20 | 1 | -2/+2 |
| | | | | | | | | | | Now you can omit |t| block parameter and all the t. from your migration code, that means, the syntax looks more Rails-3-ish, like the routes DSL and ActionMailer DSL. Also, this change won't break any of your existing migration files, since the traditional syntax is still available. | ||||
* | | dump_schema_information: explicitly order inserts into schema_migrations table | Laust Rud Jacobsen | 2011-10-31 | 1 | -1/+1 |
| | | | | | | | | | | | | | | 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. | ||||
* | | Default timestamps to non-null | Mike Perham | 2011-10-14 | 1 | -2/+2 |
| | | |||||
* | | Update remove_index documentation | Lucia Escanellas | 2011-06-17 | 1 | -4/+4 |
| | | | | | | | | | | * Changes should better reflect present code behavior * Related to issue: https://github.com/rails/rails/issues/1624 | ||||
* | | No need to pass options which is never used | Akira Matsuda | 2011-05-29 | 1 | -2/+2 |
| | | |||||
* | | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-05-25 | 1 | -3/+3 |
|\ \ | | | | | | | | | | | | | | | | Conflicts: actionmailer/lib/action_mailer/base.rb activesupport/lib/active_support/core_ext/kernel/requires.rb | ||||
| * | | Remove extra white spaces on ActiveRecord docs. | Sebastian Martinez | 2011-05-23 | 1 | -3/+3 |
| |/ | |||||
* / | Remove extra white-space on some exception messages. | Sebastian Martinez | 2011-05-23 | 1 | -1/+1 |
|/ | |||||
* | dot missing here | Sebastian Martinez | 2011-04-22 | 1 | -1/+1 |
| | |||||
* | Added doc for #table_exists? | Sebastian Martinez | 2011-04-22 | 1 | -0/+4 |
| | |||||
* | Remove incorrect comment that a default value of NULL cannot be set with ↵ | Manuel Meurer | 2011-03-16 | 1 | -3/+2 |
| | | | | change_column_default. | ||||
* | Add :bulk => true option to change_table | Pratik Naik | 2011-01-31 | 1 | -31/+59 |
| | |||||
* | move ivar to initialize, use triple dot rather than minus | Aaron Patterson | 2010-12-16 | 1 | -1/+1 |
| | |||||
* | Use Array.wrap instead of using ternary | Piotr Sarnacki | 2010-12-09 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Allow to run migrations from more than one directory | Piotr Sarnacki | 2010-12-09 | 1 | -2/+4 |
| | |||||
* | rolling out migrated_at until I can fix the build | Aaron Patterson | 2010-12-01 | 1 | -15/+3 |
| | |||||
* | tests mostly pass | Josh Susser | 2010-12-01 | 1 | -2/+2 |
| | | | | | adjust to work with instance-based migations migrated_at can't be null why must people have last names? it's killing me! | ||||
* | name in schema_migrations, migrations in schema dump | Josh Susser | 2010-12-01 | 1 | -0/+4 |
| | |||||
* | Add migrated_at column to schema_migrations table. | Josh Susser | 2010-12-01 | 1 | -1/+9 |
| | |||||
* | use inheritence to deal with custom methods | Aaron Patterson | 2010-09-29 | 1 | -4/+9 |
| | |||||
* | Test add_index and remove_index with a symbol name #4891 | Étienne Barrié | 2010-09-28 | 1 | -4/+3 |
| | |||||
* | 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 | -2/+1 |
| | |||||
* | Raise errors when index creation fails | Tim Connor | 2010-09-18 | 1 | -4/+2 |
| | |||||
* | Revert "Setup explicit requires for files with exceptions. Removed them from ↵ | José Valim | 2010-09-02 | 1 | -1/+0 |
| | | | | | | | | autoloading." Booting a new Rails application does not work after this commit [#5359 state:open] This reverts commit 38a421b34d0b414564e919f67d339fac067a56e6. | ||||
* | Setup explicit requires for files with exceptions. Removed them from ↵ | Łukasz Strzałkowski | 2010-09-02 | 1 | -0/+1 |
| | | | | | | autoloading. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -2/+2 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | Removing most of the symbol to proc usage in Active Record | Prem Sichanugrist | 2010-08-13 | 1 | -1/+1 |
| | | | | This will hopefully make Active Record run a bit more faster. | ||||
* | Allow :name to be a Symbol (was this removed by accident?) | wycats | 2010-08-03 | 1 | -0/+2 |
| | |||||
* | copy-edits some docs | Xavier Noria | 2010-07-08 | 1 | -6/+5 |
| | |||||
* | clarifying how to create non standard primary key | Neeraj Singh | 2010-07-08 | 1 | -1/+7 |
| |