README.md in with_model-1.2.0 vs README.md in with_model-1.2.1

- old
+ new

@@ -1,12 +1,11 @@ # [with_model](https://github.com/Casecommons/with_model) [![Build Status](https://secure.travis-ci.org/Casecommons/with_model.svg?branch=master)](https://travis-ci.org/Casecommons/with_model) -[![Code Climate](https://img.shields.io/codeclimate/github/Casecommons/with_model.svg)](https://codeclimate.com/github/Casecommons/with_model) -[![Coverage Status](https://img.shields.io/coveralls/Casecommons/with_model/master.svg)](https://coveralls.io/r/Casecommons/with_model) -[![Gem Version](https://badge.fury.io/rb/with_model.svg)](https://rubygems.org/gems/with_model) -[![Dependency Status](https://gemnasium.com/Casecommons/with_model.svg)](https://gemnasium.com/Casecommons/with_model) +[![Code Climate](https://img.shields.io/codeclimate/github/Casecommons/with_model.svg?style=flat)](https://codeclimate.com/github/Casecommons/with_model) +[![Coverage Status](https://img.shields.io/coveralls/Casecommons/with_model/master.svg?style=flat)](https://coveralls.io/r/Casecommons/with_model) +[![Gem Version](https://img.shields.io/gem/v/with_model.svg?style=flat)](https://rubygems.org/gems/with_model) `with_model` dynamically builds an ActiveRecord model (with table) before each test in a group and destroys it afterwards. ## Installation @@ -54,11 +53,11 @@ with_model :BlogPost do # The table block works just like a migration. table do |t| t.string :title - t.timestamps + t.timestamps null: false end # The model block works just like the class definition. model do include SomeModule @@ -78,11 +77,11 @@ # with_model classes can have associations. with_model :Comment do table do |t| t.string :text t.belongs_to :blog_post - t.timestamps + t.timestamps null: false end model do belongs_to :blog_post end @@ -152,10 +151,10 @@ describe "with table options" do with_model :WithOptions do table :id => false do |t| t.string 'foo' - t.timestamps + t.timestamps null: false end end it "respects the additional options" do expect(WithOptions.columns.map(&:name)).to_not include("id")