Skip to content

Commit 8bb8b7d

Browse files
committed
MIGRATION: Create snippets table
1 parent 17bc712 commit 8bb8b7d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

db/migrate/20240816235642_create_snippets.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ class CreateSnippets < ActiveRecord::Migration[7.1]
22
def change
33
create_table :snippets, force: true, id: false do |t|
44
t.primary_key :id, :string, default: -> { "ULID()" }
5-
t.string :title
65
t.text :source, null: false
6+
t.string :filename
7+
t.string :language
78
t.text :url
89

910
t.timestamps

db/schema.rb

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)