Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8449225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:38:39+00:00 2026-06-10T10:38:39+00:00

Possible Duplicate: Database Specific Migration Code So I run MySQL locally since it’s what

  • 0

Possible Duplicate:
Database Specific Migration Code

So I run MySQL locally since it’s what I have installed and it makes sense to me.

But Heroku uses Postgre and it doesn’t have the same field types.

I.e. I use longblob locally and it becomes bytea in my production environment.
I use tinytext locally which becomes just text

How do I specify different environments inside of my migrations so I don’t have to edit my migrations just for pushing to heroku? (I would like to keep them syntactically correct for my local machine)

Any other suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T10:38:41+00:00Added an answer on June 10, 2026 at 10:38 am

    I understand wanting to run what you’re used to locally, as it’s easier. Plus, IMO, setting up Postgres locally has always been a pain in the past. However, it really is important to run your development on the same DB as your production server. If you’re a Mac user there’s a good solution now, brought to you by none other than the Heroku postgres team:

    http://postgresapp.com/

    Use that and you don’t have to worry about this. Otherwise, follow the answer posted by Mu, which will let you do the evil two database thing 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: monitoring mysql for changes I have a MySQL database and i want
Possible Duplicate: How to run a database script file from Delphi? I have a
Possible Duplicate: Run MySQLDump without Locking Tables My website uses a mysql 5 database
Possible Duplicate: SQL Server Database query help Hi, I have a problem that I
Possible Duplicate: How to empty DB in heroku I have a Postgres database on
Is it possible to duplicate a MySQL database from their files? [I know mysqldump
Possible Duplicate: Dump a mysql database to a plaintext (CSV) backup from the command
Possible Duplicate: SELECT INTO using Oracle I have one table in my oracle database.
Possible Duplicate: How to parse HTML with PHP? Get MySQL database output via PHP
Possible Duplicate: MySQL: determine which database is selected? I'm trying to debug some problems

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.