# AWDWR Migrations question

**URL:** <https://www.ruby-forum.com/t/awdwr-migrations-question/70708>\
**Category:** Rails\
**Created:** [October 2, 2006, 7:12am UTC](https://www.ruby-forum.com/t/awdwr-migrations-question/70708 "2006-10-02T07:12:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bparanj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e9a140/32.png) [@bparanj](https://www.ruby-forum.com/u/bparanj)\
**Post date:** [October 2, 2006, 7:12am UTC](https://www.ruby-forum.com/t/awdwr-migrations-question/70708/1 "2006-10-02T07:12:11Z")

</div>

I have the following 003\_load\_orders\_data file:

require ‘active\_record/fixtures’

class LoadOrdersData \< ActiveRecord::Migration  
def self.up  
down  
f = Fixtures.new(Orders.connection, # a database connection  
“orders”, # table name  
Order, # model class  
File.join(File.dirname( **FILE** ),  
“dev\_data/orders”))  
f.insert\_fixtures  
end

def self.down  
Order.delete\_all  
end  
end

My orders.yml is as follows:

bugs\_order:  
date: 10/2/2006 12:00:00 AM  
customer: Bugs Bunny  
total: 74.00  
charge\_status: offline

daffy\_order:  
date: 10/1/2006 12:00:00 AM  
customer: Daffy Duck  
total: 65.99  
charge\_status: approved

My 001\_create\_orders.rb looks like:

class CreateOrders \< ActiveRecord::Migration  
def self.up  
create\_table :orders do |t|  
t.column :date, :timestamp  
t.column :customer, :string  
t.column :total, :decimal  
t.column :charge\_status, :string  
end  
end

def self.down  
drop\_table :orders  
end  
end

After I run rake migrate I don’t see any data populated into the orders  
table. Am I missing  
something here? TIA.
