diff --git a/.iex.exs b/.iex.exs index 188bff0..8257693 100644 --- a/.iex.exs +++ b/.iex.exs @@ -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 diff --git a/README.md b/README.md index e4832e8..2407b87 100644 --- a/README.md +++ b/README.md @@ -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.