aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema/schema.rb
diff options
context:
space:
mode:
authorRizwan Reza <rizwanreza@gmail.com>2010-03-27 15:17:07 +0430
committerwycats <wycats@gmail.com>2010-03-27 03:49:53 -0700
commitfaeca694b3d4afebf6b623b493e86731e773c462 (patch)
treef63f5d10cdefa1df2e74fc4ffe446ad0a3e79e47 /activerecord/test/schema/schema.rb
parent0a352056a4055c170e62a521267f5bc51c6659a0 (diff)
downloadrails-faeca694b3d4afebf6b623b493e86731e773c462.tar.gz
rails-faeca694b3d4afebf6b623b493e86731e773c462.tar.bz2
rails-faeca694b3d4afebf6b623b493e86731e773c462.zip
primary_key now supports :limit for MySQL
Signed-off-by: wycats <wycats@gmail.com>
Diffstat (limited to 'activerecord/test/schema/schema.rb')
-rw-r--r--activerecord/test/schema/schema.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index bec4291457..a1932ad16a 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -394,6 +394,10 @@ ActiveRecord::Schema.define do
t.integer :price
end
+ create_table :primary_key_limit, :force => true, :id => false do |t|
+ t.primary_key :id, :limit => 8
+ end
+
create_table :projects, :force => true do |t|
t.string :name
t.string :type