Ruby on Rails
Sunday, February 11, 2018
On Saturday, 23 December 2017 16:41:57 UTC, Hassan Schroeder wrote:
On Sat, Dec 23, 2017 at 6:02 AM, Robert Phillips
<robert.p...@gmail.com> wrote:
As Walter already pointed out, you shouldn't care about the content
of the id field, but ...
> I get this error
>
> C:\rubyarud\hartl\ch2\toy_app>rails db:drop
> Permission denied @ unlink_internal - C:/rubyarud/h
> Couldn't drop database 'db/development.sqlite3'
> rails aborted!
> Errno::EACCES: Permission denied @ unlink_internal
I would be concerned about not being able to drop and recreate a
database -- sometimes when you're experimenting you *will* get to
a place where you want a clean slate.
Regarding if I wanted to drop a table.
I think one thing I can do is use DB Browser for SQLite, and delete the table e.g. a table called blahabcs through that.
Then I could do rails destroy model blahabc
Then could do rails db:migrate
Would that be equivalent or the same as dropping the table?
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-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/891ee914-270c-4e28-8e82-461b02742ba6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment