Skip to content

Commit

Permalink
Annotate models
Browse files Browse the repository at this point in the history
  • Loading branch information
negativetwelve committed Sep 11, 2014
1 parent b88ae42 commit 0f39c59
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/models/check_in.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# == Schema Information
#
# Table name: check_ins
#
# id :integer not null, primary key
# user_id :integer
# check_in_code_id :integer
# created_at :datetime
# updated_at :datetime
#

class CheckIn < ActiveRecord::Base
belongs_to :user
belongs_to :check_in_code
Expand Down
11 changes: 11 additions & 0 deletions app/models/check_in_code.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# == Schema Information
#
# Table name: check_in_codes
#
# id :integer not null, primary key
# code :string(255)
# class_date :date
# created_at :datetime
# updated_at :datetime
#

class CheckInCode < ActiveRecord::Base
has_many :check_ins
end
11 changes: 11 additions & 0 deletions spec/models/check_in_code_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# == Schema Information
#
# Table name: check_in_codes
#
# id :integer not null, primary key
# code :string(255)
# class_date :date
# created_at :datetime
# updated_at :datetime
#

require 'spec_helper'

describe CheckInCode do
Expand Down
11 changes: 11 additions & 0 deletions spec/models/check_in_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# == Schema Information
#
# Table name: check_ins
#
# id :integer not null, primary key
# user_id :integer
# check_in_code_id :integer
# created_at :datetime
# updated_at :datetime
#

require 'spec_helper'

describe CheckIn do
Expand Down

0 comments on commit 0f39c59

Please sign in to comment.