cours0708/P5B/ruby/mon_projet/db/migrate/003_create_customers.rb~

13 lines
229 B
Ruby
Raw Permalink Normal View History

2008-11-25 21:11:16 +00:00
class CreateCustomers < ActiveRecord::Migration
def self.up
create_table :customers do |t|
t.column :firstname, :string
t.column :name, :string
end
end
def self.down
drop_table :customers
end
end