aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-07-19 15:32:00 -0400
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-20 16:45:42 -0700
commitf576d7cf848717384799a9e9669b253ccc94deb5 (patch)
tree4cf0e9c980e133c713374477e17411236f24aaf6 /activerecord/test/schema
parenta63566dda8246bd57e80032a1213532d0dc2ae0b (diff)
downloadrails-f576d7cf848717384799a9e9669b253ccc94deb5.tar.gz
rails-f576d7cf848717384799a9e9669b253ccc94deb5.tar.bz2
rails-f576d7cf848717384799a9e9669b253ccc94deb5.zip
Ensure that primary_keys of HABTM records is not double quoted
[#5152 state:reslved]
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r--activerecord/test/schema/schema.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index 641726b43f..c4eed256bf 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -600,6 +600,19 @@ ActiveRecord::Schema.define do
t.string :title
end
+ create_table :countries, :force => true, :id => false, :primary_key => 'country_id' do |t|
+ t.string :country_id
+ t.string :name
+ end
+ create_table :treaties, :force => true, :id => false, :primary_key => 'treaty_id' do |t|
+ t.string :treaty_id
+ t.string :name
+ end
+ create_table :countries_treaties, :force => true, :id => false do |t|
+ t.string :country_id, :null => false
+ t.string :treaty_id, :null => false
+ end
+
except 'SQLite' do
# fk_test_has_fk should be before fk_test_has_pk
create_table :fk_test_has_fk, :force => true do |t|