Skip to content

Commit 6636c9d

Browse files
authored
Merge pull request #345 from joyofrails/migration/record-events
MIGRATION: Add application_events table
2 parents 809b561 + 46552f1 commit 6636c9d

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
class CreateApplicationEvents < ActiveRecord::Migration[8.1]
2+
def change
3+
create_table :application_events, force: true, id: false do |t|
4+
t.primary_key :id, :string, default: -> { "ULID()" }
5+
t.string :type, null: false
6+
t.text :metadata
7+
t.text :data, null: false
8+
t.timestamps
9+
end
10+
end
11+
end

db/schema.rb

Lines changed: 9 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)