diff options
author | Bryan Stearns <bryanstearns@gmail.com> | 2009-09-30 23:17:50 -0700 |
---|---|---|
committer | Eloy Duran <eloy.de.enige@gmail.com> | 2010-01-08 21:45:02 +0100 |
commit | 1080351437dc43c3ecaa0d494f5ca215f03b1883 (patch) | |
tree | 371ebdf25e1ab947ae9ece41b959b9b6dc0f5a2b /activerecord/test/schema/schema.rb | |
parent | 802b08da0075bf6426c723957447ed85dc849bba (diff) | |
download | rails-1080351437dc43c3ecaa0d494f5ca215f03b1883.tar.gz rails-1080351437dc43c3ecaa0d494f5ca215f03b1883.tar.bz2 rails-1080351437dc43c3ecaa0d494f5ca215f03b1883.zip |
Add failing test that triggers the stack overflow
Diffstat (limited to 'activerecord/test/schema/schema.rb')
-rw-r--r-- | activerecord/test/schema/schema.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index 1ec36e7832..bec4291457 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -191,6 +191,11 @@ ActiveRecord::Schema.define do t.string :info end + create_table :invoices, :force => true do |t| + t.integer :balance + t.datetime :updated_at + end + create_table :items, :force => true do |t| t.column :name, :integer end @@ -216,6 +221,11 @@ ActiveRecord::Schema.define do t.integer :version, :null => false, :default => 0 end + create_table :line_items, :force => true do |t| + t.integer :invoice_id + t.integer :amount + end + create_table :lock_without_defaults, :force => true do |t| t.column :lock_version, :integer end |