README.md in set_as_primary-0.1.3 vs README.md in set_as_primary-0.1.4

- old
+ new

@@ -1,24 +1,24 @@ # SetAsPrimary +[![Build Status](https://github.com/mechanicles/set_as_primary/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/mechanicles/set_as_primary/actions) +[![Maintainability](https://api.codeclimate.com/v1/badges/9aa764138b14b87c8fe1/maintainability)](https://codeclimate.com/github/mechanicles/set_as_primary/maintainability) +[![Test Coverage](https://api.codeclimate.com/v1/badges/9aa764138b14b87c8fe1/test_coverage)](https://codeclimate.com/github/mechanicles/set_as_primary/test_coverage) + +[Demo Rails application](https://cryptic-lake-90495.herokuapp.com/) | +[Source code of Demo Rails application](https://github.com/mechanicles/set_as_primary_rails_app) + The simplest way to handle the primary or default flag to your Rails models. Features: * Supports single model (without association), model with (`belongs_to`) association, and even polymorphic associations * Force primary * Supports PostgreSQL's unique partial index (constraint) * Supports PostgreSQL, MySQL, and SQLite - - -[Demo Rails application](https://cryptic-lake-90495.herokuapp.com/) | -[Source code of Demo Rails application](https://github.com/mechanicles/set_as_primary_rails_app) - -[![Build Status](https://travis-ci.org/mechanicles/set_as_primary.svg?branch=master)](https://travis-ci.org/mechanicles/set_as_primary) - ## Installation Add this line to your application's Gemfile: ```ruby @@ -72,10 +72,10 @@ end ``` You need to include `SetAsPrimary` module in your model where you want to handle the primary flag. Then to `set_as_primary` class helper method, pass your primary flag attribute. You might need to pass - association key `owner_key` if you wan to consider owner (association) context. + association key `owner_key` if you want to consider owner (association) context. **Note:** Default primary flag attribute is `primary`, and you can use another one too like `default` but make sure that flag should be present in the table and should be a boolean data type column. #### Migration \ No newline at end of file