I'm a new rails.I tried to set up rake db:migrate db:seed
and bundle exec db:migrate db seed
but it's not working for me.Can u guys help me?please.
postgres@DungXinhDep:/home/ducdung/ruby-lab-2-hanoi-vinh$ rake db:migrate rake aborted! Errno::EACCES: Permission denied @ rb_sysopen - /home/ducdung/ruby-lab-2- hanoi-vinh/db/schema.rb /var/lib/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/railties/databases.rake:252:in
initialize
/var/lib/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/railties/databases.rake:252:inopen
/var/lib/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/railties/databases.rake:252:inblock (3 levels) in <top (required)>
/var/lib/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/railties/databases.rake:66:inblock (2 levels) in <top (required)>
/var/lib/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/railties/databases.rake:59:inblock (2 levels) in <top (required)> /var/lib/gems/2.3.0/gems/rake-11.3.0/exe/rake:27:in
' Tasks: TOP => db:schema:dump (See full trace by running task with --trace)postgres@DungXinhDep:/home/ducdung/ruby-lab-2-hanoi-vinh$ bundle exec rake db:mmigrate /usr/lib/ruby/vendor_ruby/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /var/lib/gems/2.3.0 in PATH, mode 040777 rake aborted! Don't know how to build task 'db:mmigrate' (see --tasks) /var/lib/gems/2.3.0/gems/rake-11.3.0/exe/rake:27:in `' (See full trace by running task with --trace)