spec/shared/database.rb in rom-repository-0.3.1 vs spec/shared/database.rb in rom-repository-1.0.0.beta1

- old
+ new

@@ -46,11 +46,11 @@ end conn.create_table :posts do primary_key :id foreign_key :author_id, :users, null: false, on_delete: :cascade - column :title, String + column :title, String, null: false column :body, String end conn.create_table :posts_labels do foreign_key :post_id, :labels, null: false, on_delete: :cascade @@ -67,7 +67,11 @@ conn.create_table :reactions do primary_key :reaction_id foreign_key :message_id, :messages, null: false column :author, String end + end + + after do + rom.disconnect end end