title: Deploy a rails app using MySQL to Heroku using ClearDB addon
body: <p>I have a Rails app called "enrollment_app" that initializes and populates all the tables in the database with a MySQL seed file. I built the app, added some migrations and pushed my app to Heroku. However, since Heroku uses Postgres, I need a way to make my MySQL database compatible with Heroku so I am using the ClearDB addon.</p>
  
  <p>When I try to open the app though, I get the message:</p>
  
  <pre><code>Application Error
  An error occurred in the application and your page could not be served. Please try again in a few moments.
  
  If you are the application owner, check your logs for details.
  </code></pre>
  
  <p>So, I checked the logs and see this error:</p>
  
  <pre><code>PG::UndefinedTable: ERROR:  relation "enrollments" does not exist
  </code></pre>
  
  <p>I've been following along with this <a href="https://devcenter.heroku.com/articles/cleardb" rel="nofollow">tutorial</a> but apparently I don't know how to make ClearDB look like my local MySQL DB since I'm getting that error above. How can I do the equivalent of <code>rake db:seed</code> the MySQL seed file and <code>rake db:migrate</code> to the production ClearDB database?</p>
  
  <p>Updated - Gemfile:</p>
  
  <pre><code>source 'https://rubygems.org'
  
  gem 'rails', '4.2.1'
  gem 'mysql2'
  gem 'sass-rails', '~&gt; 5.0'
  gem 'uglifier', '&gt;= 1.3.0'
  gem 'coffee-rails', '~&gt; 4.1.0'
  gem 'jquery-rails'
  gem 'turbolinks'
  gem 'jbuilder', '~&gt; 2.0'
  gem 'sdoc', '~&gt; 0.4.0', group: :doc
  gem 'bootstrap-sass', '~&gt; 3.3.5'
  gem 'bootswatch-rails'
  gem 'ransack'
  gem 'jquery-turbolinks'
  gem 'kaminari'
  gem 'bootstrap-kaminari-views'
  gem 'jquery-ui-rails'
  gem 'espinita'
  gem 'mysqltopostgres', git: "https://github.com/maxlapshin/mysql2postgres.git"
  
  group :development, :test do
    gem 'byebug'
    gem 'web-console', '~&gt; 2.0'
    gem 'spring'
    gem 'rspec-rails'
    gem 'launchy'
    gem 'pry'
    gem 'pry-nav'
    gem 'shoulda-matchers'
    gem 'factory_girl_rails'
    gem 'capybara'
    gem 'newrelic_rpm'
    gem 'poltergeist'
    gem 'database_cleaner'
  end
  
  group :production do
    gem 'rails_12factor'
  end
  </code></pre>