add_index :people, [:firstname, :lastname, :dob], unique: true
More Related Contents:
- Difference between rake db:migrate db:reset and db:schema:load
- Rails :include vs. :joins
- Using Rails, how can I set my primary key to not be an integer-typed column?
- PG::ConnectionBad – could not connect to server: Connection refused
- Why can you not have a foreign key in a polymorphic association?
- Postgres could not connect to server
- Composite primary keys versus unique object ID field
- PG undefinedtable error relation users does not exist
- Alias for column names in Rails
- Change from SQLite to PostgreSQL in a fresh Rails project
- Multiple databases in Rails
- What is the best way to seed a database in Rails?
- Connecting to multiple databases in ruby on rails
- Cannot add a NOT NULL column with default value NULL in Sqlite3
- Using Rails Migration on different database than standard “production” or “development”
- How do I set up the database.yml file in Rails?
- delete_all vs destroy_all?
- How to implement Active Record inheritance in Ruby on Rails?
- How do I avoid a race condition in my Rails app?
- Rails: store translations in database
- Ruby on rails Failed to precompile
- Rails nested form with has_many :through, how to edit attributes of join model?
- How to extract URL parameters from a URL with Ruby or Rails?
- Rails config.assets.precompile setting to process all CSS and JS files in app/assets
- Rails, Devise authentication, CSRF issue
- Rails: self join scheme with has_and_belongs_to_many?
- rails4 unknown encoding name – CP720
- nokogiri gem installation error
- Looking for suggestions for building a secure REST API within Ruby on Rails
- How to integrate a Wrap Bootstrap theme into an Rails application?