parent
bb15f00637
commit
c579ee51fe
@ -0,0 +1,3 @@
|
|||||||
|
class OnclickTime < ActiveRecord::Base
|
||||||
|
attr_accessible :onclick_time, :user_id
|
||||||
|
end
|
@ -0,0 +1,10 @@
|
|||||||
|
class CreateOnclickTimes < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
create_table :onclick_times do |t|
|
||||||
|
t.integer :user_id
|
||||||
|
t.datetime :onclick_time
|
||||||
|
|
||||||
|
t.timestamps
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,7 @@
|
|||||||
|
FactoryGirl.define do
|
||||||
|
factory :onclick_time do
|
||||||
|
user_id 1
|
||||||
|
onclick_time "2015-09-06 14:57:02"
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
@ -0,0 +1,5 @@
|
|||||||
|
require 'rails_helper'
|
||||||
|
|
||||||
|
RSpec.describe OnclickTime, :type => :model do
|
||||||
|
pending "add some examples to (or delete) #{__FILE__}"
|
||||||
|
end
|
Loading…
Reference in new issue