aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorEdward Faulkner <ef@alum.mit.edu>2011-02-04 15:34:44 -0500
committerSantiago Pastorino <santiago@wyeworks.com>2011-02-04 19:39:59 -0200
commit909588d964bf27f20142a0b4d57890114a8d4a7a (patch)
tree13547fb5224456d7345ceb9a80ab1ed4dac2e8ff /activerecord/test/schema
parentdf077604865b12b119be0259575675f45b958524 (diff)
downloadrails-909588d964bf27f20142a0b4d57890114a8d4a7a.tar.gz
rails-909588d964bf27f20142a0b4d57890114a8d4a7a.tar.bz2
rails-909588d964bf27f20142a0b4d57890114a8d4a7a.zip
Fixing ordering of HABTM association deletion [#6191 state:resolved]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
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 5f9bb7ee41..326c336317 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -279,6 +279,15 @@ ActiveRecord::Schema.define do
t.integer :version, :null => false, :default => 0
end
+ create_table :lessons, :force => true do |t|
+ t.string :name
+ end
+
+ create_table :lessons_students, :id => false, :force => true do |t|
+ t.references :lesson
+ t.references :student
+ end
+
create_table :line_items, :force => true do |t|
t.integer :invoice_id
t.integer :amount
@@ -509,6 +518,10 @@ ActiveRecord::Schema.define do
t.string :sponsorable_type
end
+ create_table :students, :force => true do |t|
+ t.string :name
+ end
+
create_table :subscribers, :force => true, :id => false do |t|
t.string :nick, :null => false
t.string :name