diff options
Diffstat (limited to 'activerecord/test/fixtures/db_definitions/schema.rb')
-rw-r--r-- | activerecord/test/fixtures/db_definitions/schema.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/db_definitions/schema.rb b/activerecord/test/fixtures/db_definitions/schema.rb index dcb6222cd3..9cadc5bdb8 100644 --- a/activerecord/test/fixtures/db_definitions/schema.rb +++ b/activerecord/test/fixtures/db_definitions/schema.rb @@ -295,4 +295,33 @@ ActiveRecord::Schema.define do t.column :city, :string, :null => false t.column :type, :string end + + create_table :parrots, :force => true do |t| + t.column :name, :string + t.column :created_at, :datetime + t.column :created_on, :datetime + t.column :updated_at, :datetime + t.column :updated_on, :datetime + end + + create_table :pirates, :force => true do |t| + t.column :catchphrase, :string + t.column :parrot_id, :integer + t.column :created_on, :datetime + t.column :updated_on, :datetime + end + + create_table :parrots_pirates, :id => false, :force => true do |t| + t.column :parrot_id, :integer + t.column :pirate_id, :integer + end + + create_table :treasures, :force => true do |t| + t.column :name, :string + end + + create_table :parrots_treasures, :id => false, :force => true do |t| + t.column :parrot_id, :integer + t.column :treasure_id, :integer + end end |