Skip to content

Commit

Permalink
properly removing the source_object elements from events column and u…
Browse files Browse the repository at this point in the history
…sing source as always an user
  • Loading branch information
aajjbb committed Aug 7, 2017
1 parent 2391d72 commit c89cdda
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion migrations.moon
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ import
create_table "events", {
{"id", serial}
{"event_type", enum}
{"source_user_id", enum}
{"source_object_id", enum}
{"source_object_type", foreign_key}
{"object_object_id", enum}
{"object_object_type", foreign_key}
{"created_at", time}
Expand All @@ -286,4 +287,8 @@ import

"PRIMARY KEY (user_id, event_id)"
}
[1502127717]: =>
drop_column "events", "source_object_id"
drop_column "events", "source_object_type"
add_column "events", "source_user_id", foreign_key
}

0 comments on commit c89cdda

Please sign in to comment.