Skip to content

Instantly share code, notes, and snippets.

View Nopzen's full-sized avatar
:octocat:
building...

Lars Krieger Nopzen

:octocat:
building...
View GitHub Profile
@NigelEarle
NigelEarle / Knex-Migrations-Seeding.md
Last active June 25, 2026 20:56
Migration and seeding instructions using Knex.js!

Migrations & Seeding

What are migrations??

Migrations are a way to make database changes or updates, like creating or dropping tables, as well as updating a table with new columns with constraints via generated scripts. We can build these scripts via the command line using knex command line tool.

To learn more about migrations, check out this article on the different types of database migrations!

Creating/Dropping Tables

@jtallant
jtallant / setting-up-sinatra-with-active-record.md
Last active May 12, 2026 17:34
Setting up Sinatra with Active Record

Setting up Sinatra Project

create an empty project and add a Gemfile

cd ~/Desktop
mkdir project-name
cd project-name
touch Gemfile