spec/shared/users_and_tasks.rb in rom-sql-1.0.3 vs spec/shared/users_and_tasks.rb in rom-sql-1.1.0
- old
+ new
@@ -11,10 +11,10 @@
ctx = self
conn.create_table :tasks do
primary_key :id
foreign_key :user_id, :users
- String :title, unique: true
+ String :title
constraint(:title_length) { char_length(title) > 1 } if ctx.postgres?(example)
constraint(:title_length) { length(title) > 1 } if ctx.sqlite?(example)
end
conn.create_table :tags do