I am going through Ruby on Rail Tutorials by Michael Hartl, and in chapter 6, I'm going to create a new migration The instructions have been added to add an index to the email column in the user's table.
Here's my migration:
def self.up add_index: user,: email,: unique => When I run Rake DB: thinks it for another, then throws a busy extension and says that the database is locked. The database is a sqlite3 database stored in my user folder in my local folder; Nothing Important. Any other and all help is greatly appreciated.
I get this all the time, it is rooted in the fact that SQLite has access only from one process Can be done at one time and the database has been locked by that process. Make sure that you do not have a server or console running in any other terminal if you continue to receive it, and you are certain that there is nothing else to access that squelight database (including zombie processes) Here's the advice you can follow:
Comments
Post a Comment