mardi 20 mars 2018

How to dump schema of all users defined in database.yml file

My database.yml looks like

development: &development
  adapter: oracle_enhanced
  database: some_db
  username: admin
  password: password

temp_development:
  <<: *development
  username: another_user
  password: another_password

auth_development:
  <<: *development
  username: authority
  password: authority

When I run rake db:schema:dump it will dump all the tables created by user admin into schema.rb, how can I dump table created in another schema or created by other users like another_user and authority in schema.rb

Aucun commentaire:

Enregistrer un commentaire