diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-11-14 03:32:16 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-11-14 03:32:16 +0000 |
commit | 50ee332c4aa97aa797e814d3ab6ae63a0f8351e2 (patch) | |
tree | 7db87a169801a47875bfb8b7e6046df74ef9df92 /activerecord/test/fixtures | |
parent | fda4330ce9be60c4bd7434ea613543a1c378852b (diff) | |
download | rails-50ee332c4aa97aa797e814d3ab6ae63a0f8351e2.tar.gz rails-50ee332c4aa97aa797e814d3ab6ae63a0f8351e2.tar.bz2 rails-50ee332c4aa97aa797e814d3ab6ae63a0f8351e2.zip |
Cleanup SQLite AUTOINCREMENT: exclude sqlite_sequence table, factor out feature availability check.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5520 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures')
-rw-r--r-- | activerecord/test/fixtures/db_definitions/schema.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/db_definitions/schema.rb b/activerecord/test/fixtures/db_definitions/schema.rb index 9c851817ec..b5d7704d2e 100644 --- a/activerecord/test/fixtures/db_definitions/schema.rb +++ b/activerecord/test/fixtures/db_definitions/schema.rb @@ -57,4 +57,11 @@ ActiveRecord::Schema.define do create_table :lock_without_defaults_cust, :force => true do |t| t.column :custom_lock_version, :integer end + + # For sqlite 3.1.0+, make a table with a autoincrement column + if adapter_name == 'SQLite' and supports_autoincrement? + create_table :table_with_autoincrement, :force => true do |t| + t.column :name, :string + end + end end |