Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 502 Bytes

File metadata and controls

18 lines (11 loc) · 502 Bytes

Using Rails Migrations with Hasura

This guide explains how to use Ruby on Rails migrations to manage your database schema while using Hasura GraphQL Engine.

Prerequisites

  • A running Hasura instance connected to your PostgreSQL database
  • A working Ruby on Rails project
  • Rails migrations enabled in your app (default in most Rails apps)

Step 1: Create a Rails migration

You can create a new migration as usual with Rails:

rails generate migration AddUsersTable