Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CreateMedications < ActiveRecord::Migration
- def self.up
- create_table :medications do |t|
- t.string :name
- t.string :prescriber
- t.date :dispense_date
- t.integer :quantity
- t.integer :days_supply
- t.boolean :imported, :default => false
- t.boolean :stopped, :default => false
- t.timestamps
- end
- end
- def self.down
- drop_table :medications
- end
- end
Add Comment
Please, Sign In to add comment