Im currently new in rails and using v 2.3.11

I would like to ask if how can I query entries without including their
duplicates?

class CreatesStudent < ActiveRecord::Migration
  def self.up
    create_table :students do |t|
      t.string :first_name
      t.string :middle_name
      t.string :last_name
      t.timestamps
    end
  end

  def self.down
    drop_table :profiles
  end
end

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to