I'm going through the Ruby on Rails tutorial by Michael Hartl, and in chapter 6 I am instructed to create a new migration to add an index to the email column in the users table.
Here is my migration:
def self.up
add_index :users, :email, :unique => true
end
def self.down
remove_index :users, :email
end
When I run rake db:migrate it thinks for a second, then throws a BusyException and says the database is locked. The database is a sqlite3 database stored on my local machine in my user folder; nothing special.
Any and all help is greatly appreciated.