Guest User

Untitled

a guest
Jun 19th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. class CreateMedications < ActiveRecord::Migration
  2. def self.up
  3. create_table :medications do |t|
  4. t.string :name
  5. t.string :prescriber
  6. t.date :dispense_date
  7. t.integer :quantity
  8. t.integer :days_supply
  9. t.boolean :imported, :default => false
  10. t.boolean :stopped, :default => false
  11. t.timestamps
  12. end
  13. end
  14.  
  15. def self.down
  16. drop_table :medications
  17. end
  18. end
Add Comment
Please, Sign In to add comment