Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | make add_index and remove_index more resilient; new rename_index method; ↵ | Étienne Barrié | 2010-05-18 | 2 | -6/+96 |
| | | | | | | | | track database limits [#3452 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Better code formatting and proper line numbers for stack traces | Neeraj Singh | 2010-05-14 | 1 | -2/+2 |
| | | | | | | [#4596 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Revert "Revert "Add index length support for MySQL [#1852 state:open]"" | Pratik Naik | 2010-05-09 | 2 | -2/+23 |
| | | | | This reverts commit 6626833db13a69786f9f6cd56b9f53c4017c3e39. | ||||
* | eliminate alias_method_chain from ActiveRecord | wycats | 2010-05-09 | 1 | -17/+10 |
| | |||||
* | get the rescue error page back [#4536 state:resolved] | Sam Ruby | 2010-05-08 | 1 | -1/+1 |
| | |||||
* | Revert "Add index length support for MySQL [#1852 state:open]" | José Valim | 2010-05-08 | 2 | -23/+2 |
| | | | | | | | | | | | | | 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 Parreno | 2010-05-08 | 2 | -2/+23 |
| | | | | | | | | | | | | 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> | ||||
* | Use class_inheritable_accessor for connection_handler | Pratik Naik | 2010-05-04 | 1 | -3/+3 |
| | |||||
* | Change event namespace ordering to most-significant first [#4504 state:resolved] | Justin George | 2010-05-02 | 1 | -1/+1 |
| | | | | | | | | | More work still needs to be done on some of these names (render_template.action_view and render_template!.action_view particularly) but this allows (for example) /^sql/ to subscribe to all the various ORMs without further modification Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Add after_commit and after_rollback callbacks to ActiveRecord that are ↵ | Brian Durand | 2010-04-29 | 1 | -0/+56 |
| | | | | | | | | called after transactions either commit or rollback on all records saved or destroyed in the transaction. [#2991 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Remove quoted_string_prefix entirely since PostgreSQL was the only database ↵ | Jeremy Kemper | 2010-04-24 | 1 | -7/+3 |
| | | | | adapter relying on it. | ||||
* | Avoid deprecated String#to_a by using Array.wrap(...) instead of Array(...) | Jeremy Kemper | 2010-04-10 | 1 | -2/+4 |
| | |||||
* | clearing up many warnings, removing unnecessary regular expresion ↵ | Aaron Patterson | 2010-04-10 | 1 | -2/+1 |
| | | | | | | comparisons [#4365 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | fix stack trace lines on class_eval | Santiago Pastorino | 2010-04-09 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | remove_index now uses quote_table_name() [#4300 state:resolved] | Simon Effenberg | 2010-04-06 | 1 | -1/+1 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Fix mapping of bigint/smallint/uuid columns in postgresql adapter. | Ernie Miller | 2010-03-31 | 1 | -1/+2 |
| | | | | Signed-off-by: Emilio Tagua <miloops@gmail.com> | ||||
* | adds missing requires for Object#blank? and Object#present? | Xavier Noria | 2010-03-28 | 1 | -0/+1 |
| | |||||
* | adds missing requires for Object#duplicable? | Xavier Noria | 2010-03-28 | 1 | -0/+2 |
| | |||||
* | Revert "primary_key now supports :limit for MySQL". Break Sam Ruby app. | José Valim | 2010-03-27 | 1 | -4/+4 |
| | | | | | | To reproduce, start a new application, create a scaffold and run test suite. [#876 state:open] This reverts commit faeca694b3d4afebf6b623b493e86731e773c462. | ||||
* | primary_key now supports :limit for MySQL | Rizwan Reza | 2010-03-27 | 1 | -4/+4 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Revert "primary_key now supports :limit. [#876 state:resolved]" since it ↵ | José Valim | 2010-03-27 | 1 | -4/+4 |
| | | | | | | broke AR test suite. This reverts commit 41e5c7ed44fedb95636ef9b7a792c46ea03309bd. | ||||
* | primary_key now supports :limit. [#876 state:resolved] | Rizwan Reza | 2010-03-27 | 1 | -4/+4 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Add add_limit_offset! to adapters. | Emilio Tagua | 2010-03-25 | 1 | -0/+23 |
| | |||||
* | ActiveRecord should raise an error on invalid migration types. | José Valim | 2010-02-28 | 1 | -4/+7 |
| | |||||
* | avoid @transaction_joinable not initialized warning | Santiago Pastorino | 2010-02-22 | 1 | -1/+1 |
| | |||||
* | Revert "Fix #microseconds conversion and #fast_string_to_time" | Pratik Naik | 2010-01-17 | 1 | -7/+6 |
| | | | | This reverts commit 717a2941e15b32d07cc456bb0d81742ecfc5b4a3. Bunch of failures when running postgresql tests. | ||||
* | Fix #microseconds conversion and #fast_string_to_time | Chris Hapgood | 2010-01-16 | 1 | -6/+7 |
| | | | | | | | | * Use direct integer parsing in #fast_string_to_time to avoid convoluted conversions and errors due to truncation. * Use Float#round in #microseconds to avoid truncation errors. Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Move AR logging responsibilities to ActiveRecord::Railties::Subscriber. | José Valim | 2010-01-13 | 1 | -1/+2 |
| | |||||
* | Remove allow_concurrency and verification_timeout from ActiveRecord::Base ↵ | José Valim | 2010-01-13 | 1 | -20/+0 |
| | | | | (deprecated since 2.2). | ||||
* | Set deprecation warnings for RAILS_ENV and RAILS_DEFAULT_LOGGER. | José Valim | 2010-01-13 | 1 | -2/+2 |
| | |||||
* | Expose connections available in the connection pool. | José Valim | 2010-01-11 | 1 | -1/+1 |
| | |||||
* | Allow AR::Schema's migrations_path to be overwritten by subclasses. Defaults ↵ | Jeffrey Hardy | 2010-01-08 | 1 | -2/+2 |
| | | | | | | | | to 'db/migrate' [#3671 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Remove locking related unused code | Pratik Naik | 2009-12-28 | 1 | -12/+0 |
| | |||||
* | Modify connection pool callbacks to be compatible w/ new style | Nick Sieger | 2009-10-16 | 1 | -6/+8 |
| | | | | Signed-off-by: Yehuda Katz <wycats@gmail.com> | ||||
* | Merge commit 'rails/master' | Emilio Tagua | 2009-08-10 | 2 | -2/+17 |
|\ | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/calculations.rb activerecord/lib/active_record/connection_adapters/mysql_adapter.rb activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | ||||
| * | Use table prefix and suffix for schema_migrations index. | Tim Peters | 2009-08-09 | 1 | -1/+1 |
| | | | | | | | | | | | | [#1543 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
| * | PostgreSQL: XML datatype support | Leonardo Borges | 2009-08-09 | 1 | -0/+15 |
| | | | | | | | | | | | | [#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 Schweers | 2009-08-09 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | generates an incorrectly pluralized primary key. [#872 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | | Merge commit 'rails/master' | Emilio Tagua | 2009-08-06 | 1 | -2/+1 |
|\| | |||||
| * | Ruby 1.9.2 compat: Array#* uses to_str instead of to_s to join values since ↵ | Akira Matsuda | 2009-08-05 | 1 | -2/+1 |
| | | | | | | | | | | | | | | | | Ruby 1.9.2 [#2959 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | | Merge commit 'rails/master' | Emilio Tagua | 2009-08-05 | 1 | -1/+6 |
|\| | |||||
| * | Revert "fallback_string_to_date sets Date._parse comp arg to true, so that ↵ | Geoff Buesing | 2009-08-05 | 1 | -1/+1 |
| | | | | | | | | | | | | strings with two-digit years, e.g. '1/1/09', are interpreted as modern years" [#2019 state:wontfix] This reverts commit 55d1d12c32a1b99f3f07d2346b49a63650ba2e9d. | ||||
| * | fallback_string_to_date sets Date._parse comp arg to true, so that strings ↵ | Matt Ganderup | 2009-08-03 | 1 | -1/+1 |
| | | | | | | | | with two-digit years, e.g. '1/1/09', are interpreted as modern years [#2019 state:resolved] | ||||
| * | quoted_date converts time-like objects to ↵ | Geoff Buesing | 2009-08-03 | 1 | -1/+6 |
| | | | | | | | | ActiveRecord::Base.default_timezone before serialization. This allows you to use Time.now in find conditions and have it correctly be serialized as the current time in UTC when default_timezone == :utc [#2946 state:resolved] | ||||
* | | Merge commit 'rails/master' | Emilio Tagua | 2009-07-31 | 2 | -1/+9 |
|\| | | | | | | | | | Conflicts: activerecord/lib/active_record/associations.rb | ||||
| * | Merge docrails | Pratik Naik | 2009-07-25 | 2 | -1/+9 |
| | | |||||
* | | Create is now powered by Arel. Removed methods that are no longer used. | Emilio Tagua | 2009-07-01 | 1 | -2/+2 |
| | | |||||
* | | Merge commit 'rails/master' | Emilio Tagua | 2009-06-23 | 1 | -1/+1 |
|\| | |||||
| * | Fixed a bug where create_table could not be called without a block [#2221 ↵ | Joseph Wilk | 2009-06-21 | 1 | -1/+1 |
| | | | | | | | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | | Removed unused methods. | Emilio Tagua | 2009-06-23 | 1 | -27/+0 |
| | |