Skip to content

Commit

Permalink
fix table name in example
Browse files Browse the repository at this point in the history
ezekg committed Aug 12, 2024
1 parent 9a4a163 commit 0524ebf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -47,15 +47,15 @@ To define a temporary table:

```ruby
describe Example do
temporary_table :user do |t|
temporary_table :users do |t|
t.string :email
t.string :first_name
t.string :last_name
t.index :email, unique: true
end

it 'should define a table' do
expect(ActiveRecord::Base.connection.table_exists?(:user)).to be true
expect(ActiveRecord::Base.connection.table_exists?(:users)).to be true
end
end
```

0 comments on commit 0524ebf

Please sign in to comment.