How to fix «undefined symbol: _ZTIN2v811ArrayBuffer9AllocatorE» on `bundle exec rake db:migrate`?

Step 1

Replace the line:

with the following one:

gem 'mini_racer', '>= 0.1.15'

Step 2

Delete Gemfile.lock.

Step 3

Run bundle install.

Step 4

Run bundle exec rake db:migrate again.