spec/shared/users_and_tasks.rb in rom-sql-1.2.2 vs spec/shared/users_and_tasks.rb in rom-sql-1.3.0
- old
+ new
@@ -15,10 +15,10 @@
ctx = self
conn.create_table :tasks do
primary_key :id
foreign_key :user_id, :users
- String :title
+ String :title, text: false
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