Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class DropDelayedJobTables < ActiveRecord::Migration
- def change
- drop_table :delayed_jobs
- end
- end
- $ psql myapp_production
- myapp_production=# dt
- Schema | Name | Type | Owner
- --------+-------------------+-------+-----------
- public | delayed_jobs | table | leoebrown
- public | foods | table | leoebrown
- public | lists | table | leoebrown
- public | quantities | table | leoebrown
- public | schema_migrations | table | leoebrown
- public | users | table | leoebrown
- myapp_production=# SELECT COUNT(*) from FOODS;
- count
- -------
- 6716
- (1 row)
- $heroku run console
- irb(main):001:0> Food.count
- => 6161
- development:
- host: localhost
- adapter: postgresql
- encoding: UTF8
- pool: 5
- username: <%= ENV['USERNAME'] %>
- password: <%= ENV['PASSWORD'] %>
- database: myapp_development
- test:
- host: localhost
- adapter: postgresql
- encoding: UTF8
- pool: 5
- username: <%= ENV['USERNAME'] %>
- password: <%= ENV['PASSWORD'] %>
- database: myapp_test
- production:
- host: <%= ENV['IP'] %>
- adapter: postgresql
- encoding: UTF8
- pool: 5
- username: <%= ENV['USERNAME'] %>
- password: <%= ENV['PASSWORD'] %>
- database: myapp_production
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement