Skip to content

Commit

Permalink
Update to use Table.create!
Browse files Browse the repository at this point in the history
  • Loading branch information
sheharyarn committed Aug 26, 2018
1 parent ba677f9 commit e5207d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .iex.exs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ alias Definitions.Tables.Email, as: E
alias Definitions.Tables.Movie, as: M

# Create Tables
Table.create(U)
Table.create(E)
Table.create(M)
Table.create!(U)
Table.create!(E)
Table.create!(M)

# Seed with some values
U.seed
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ end
Once you have defined your schemas, you need to create them before you can interact with them:

```elixir
:ok = Memento.Table.create(Blog.Author)
:ok = Memento.Table.create(Blog.Post)
Memento.Table.create!(Blog.Author)
Memento.Table.create!(Blog.Post)
```

See the [`Memento.Table`][docs-table] documentation for detailed examples and more information about all the options.
Expand Down

0 comments on commit e5207d6

Please sign in to comment.