Skip to content

Commit

Permalink
Have a module to call for doing the migration
Browse files Browse the repository at this point in the history
  • Loading branch information
LostKobrakai committed Sep 4, 2020
1 parent fee0a13 commit 66cfbc3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Fable.Migrations.CreateEvents do
defmodule Fable.Migrations do
use Ecto.Migration

def change(table) do
def events_table(table) do
create table(table, primary_key: false) do
add(:id, :bigserial, primary_key: true)
add(:prev_event_id, :integer)
Expand Down

0 comments on commit 66cfbc3

Please sign in to comment.