# == Schema Information # # Table name: contacts # # id :integer not null, primary key # name :string # email :string # message :text # created_at :datetime not null # updated_at :datetime not null # class Contact < ActiveRecord::Base scope :search, -> { where('1=1') } end