boissier_app/db/migrate/20110502203702_create_prescriptions.rb
Nicolas Bally 6abf7679fd initial
2011-05-14 13:36:30 +02:00

24 lines
449 B
Ruby

# -*- encoding : utf-8 -*-
class CreatePrescriptions < ActiveRecord::Migration
def self.up
create_table :prescriptions do |t|
t.string :name
t.string :tel
t.text :notes
t.text :pharma_notes
t.string :file
t.integer :done_by
t.boolean :read
t.datetime :done_at
t.datetime :delivery_at
t.boolean :done
t.timestamps
end
end
def self.down
drop_table :prescriptions
end
end