Advertisement
Guest User

Untitled

a guest
Oct 1st, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. class DropDelayedJobTables < ActiveRecord::Migration
  2. def change
  3. drop_table :delayed_jobs
  4. end
  5. end
  6.  
  7. $ psql myapp_production
  8. myapp_production=# dt
  9. Schema | Name | Type | Owner
  10. --------+-------------------+-------+-----------
  11. public | delayed_jobs | table | leoebrown
  12. public | foods | table | leoebrown
  13. public | lists | table | leoebrown
  14. public | quantities | table | leoebrown
  15. public | schema_migrations | table | leoebrown
  16. public | users | table | leoebrown
  17.  
  18. myapp_production=# SELECT COUNT(*) from FOODS;
  19. count
  20. -------
  21. 6716
  22. (1 row)
  23.  
  24. $heroku run console
  25. irb(main):001:0> Food.count
  26. => 6161
  27.  
  28. development:
  29.  
  30. host: localhost
  31. adapter: postgresql
  32. encoding: UTF8
  33. pool: 5
  34. username: <%= ENV['USERNAME'] %>
  35. password: <%= ENV['PASSWORD'] %>
  36. database: myapp_development
  37.  
  38. test:
  39. host: localhost
  40. adapter: postgresql
  41. encoding: UTF8
  42. pool: 5
  43. username: <%= ENV['USERNAME'] %>
  44. password: <%= ENV['PASSWORD'] %>
  45. database: myapp_test
  46.  
  47. production:
  48. host: <%= ENV['IP'] %>
  49. adapter: postgresql
  50. encoding: UTF8
  51. pool: 5
  52. username: <%= ENV['USERNAME'] %>
  53. password: <%= ENV['PASSWORD'] %>
  54. database: myapp_production
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement