Is there a new command to load the schema in rails 6?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a77d507f-2927-4e38-8f88-643e8e24030f%40googlegroups.com.
It is `rails db:schema:load`, run `rails -T` to list all the available tasks.
El lun., 25 nov. 2019 a las 23:13, fugee ohu (<fuge...@gmail.com>) escribió:
Is there a new command to load the schema in rails 6?--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a77d507f-2927-4e38-8f88-643e8e24030f%40googlegroups.com.
Complains that users table already exists
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAP%2BbYWDPz0-BRfO5ohk%3DT76WKCb6JYhyqudqzqznnEBcQ0eOkQ%40mail.gmail.com.
You can run rails db:reset then
El mar., 26 nov. 2019 05:37, Hasan Diwan <hasan...@gmail.com> escribió:
--[response inline]On Tue, 26 Nov 2019 at 00:00, fugee ohu <fuge...@gmail.com> wrote:Complains that users table already existsbundle exec rails db:drop db:create db:migrate db:schema:loadSeems you had a mistake in a migration. So, you need to reset your database to pristine state and start again. Hope this helps! -- H--If you wish to request my time, please do so using bit.ly/hd1AppointmentRequest.Si vous voudrais faire connnaisance, allez a bit.ly/hd1AppointmentRequest.Envoye de mon portable
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAP%2BbYWDPz0-BRfO5ohk%3DT76WKCb6JYhyqudqzqznnEBcQ0eOkQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAP%2BbYWAGfMrun5ZYzUuJRbbxx24-o3iKZfKSBv%3DEx52nA3fRkA%40mail.gmail.com.
You were trying to reload the schema, db:schema:load requires an empty database, I guessed you were OK with removing the data. db:reset it's just a shortcut for drop > create > schema:load > seed.Why do you want to load the schema if you already have data and you don't want to lose it? that makes no sense, if you already have data then you already have the schema loaded.
El mar., 26 nov. 2019 a las 10:59, Hasan Diwan (<hasan...@gmail.com>) escribió:
--[response inline]On Tue, 26 Nov 2019 at 05:55, fugee ohu <fuge...@gmail.com> wrote:What would that do to my dataYou'll need to back it up. Which database are you using? -- H--If you wish to request my time, please do so using bit.ly/hd1AppointmentRequest.Si vous voudrais faire connnaisance, allez a bit.ly/hd1AppointmentRequest.Envoye de mon portable
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAP%2BbYWAGfMrun5ZYzUuJRbbxx24-o3iKZfKSBv%3DEx52nA3fRkA%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ab1850ac-9086-41de-a700-3419637f9aba%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ab1850ac-9086-41de-a700-3419637f9aba%40googlegroups.com.