Skip to content

Instantly share code, notes, and snippets.

@vu0tran

vu0tran/skips.rb Secret

Created July 30, 2016 11:37
Show Gist options
  • Save vu0tran/d506c04ec7790fc60359e19d08953cf3 to your computer and use it in GitHub Desktop.
Save vu0tran/d506c04ec7790fc60359e19d08953cf3 to your computer and use it in GitHub Desktop.
# == Schema Information
#
# Table name: skips
#
# id :integer not null, primary key
# user_id :integer
# partner_id :integer
# created_at :datetime not null
# updated_at :datetime not null
#
class Skip < ActiveRecord::Base
belongs_to :user
end
# SCEHMA
create_table "skips", force: :cascade do |t|
t.integer "user_id"
t.integer "partner_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
add_index "skips", ["partner_id"], name: "index_skips_on_partner_id", using: :btree
add_index "skips", ["user_id"], name: "index_skips_on_user_id", using: :btree
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment