diff options
author | Tarmo Tänav <tarmo@itech.ee> | 2008-08-22 23:53:31 +0300 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-08-22 14:46:25 -0700 |
commit | 707ee0e2695e85186d59aa407f09691ebfcc3125 (patch) | |
tree | 4357234d7cdb191d267e400ea217642124e06cae /activerecord/lib/active_record/connection_adapters/abstract_adapter.rb | |
parent | 9dac5547ad65e82a6fbb6a6243ab5c95d9c44db0 (diff) | |
download | rails-707ee0e2695e85186d59aa407f09691ebfcc3125.tar.gz rails-707ee0e2695e85186d59aa407f09691ebfcc3125.tar.bz2 rails-707ee0e2695e85186d59aa407f09691ebfcc3125.zip |
Made migrations transactional for PostgreSQL [#834 state:resolved]
Patch originally from http://dev.rubyonrails.org/ticket/5470
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract_adapter.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_adapter.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb index 47dbf5a5f3..6924bb7e6f 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb @@ -51,6 +51,13 @@ module ActiveRecord true end + # Does this adapter support DDL rollbacks in transactions? That is, would + # CREATE TABLE or ALTER TABLE get rolled back by a transaction? PostgreSQL, + # SQL Server, and others support this. MySQL and others do not. + def supports_ddl_transactions? + false + end + # Should primary key values be selected from their corresponding # sequence before the insert statement? If true, next_sequence_value # is called before each insert to set the record's primary key. |