amberframework / amber

A Crystal web framework that makes building applications fast, simple, and enjoyable. Get started with quick prototyping, less bugs, and blazing fast performance.
https://amberframework.org
MIT License
2.58k stars 208 forks source link

Support granite migrations #1222

Closed drujensen closed 4 years ago

drujensen commented 4 years ago

Description of the Change

This change adds support for the new granite migrations DSL that is similar to Rails. This replaces the template generators to use the new syntax.

Alternate Designs

Keep the existing SQL generators

Benefits

One of the most requested features is support for a clean DSL for migrations. This will make Rails developers feel right at home using Amber.

Possible Drawbacks

The current implementation does not have all the field options yet. A work around is to use t.custom and use SQL syntax for the field for now.

eliasjpr commented 4 years ago

This is a great addition! Thank you @drujensen