schedule_job
parent
f232066bc4
commit
fa402ef3c4
@ -0,0 +1,3 @@
|
||||
class Collection < ApplicationRecord
|
||||
belongs_to :user
|
||||
end
|
@ -0,0 +1,13 @@
|
||||
class CreateCollections < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :collections do |t|
|
||||
t.references :user, index: true
|
||||
t.integer :container_id
|
||||
t.string :container_type
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :collections, [:container_type, :container_id]
|
||||
end
|
||||
end
|
@ -0,0 +1,5 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Collection, type: :model do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
Loading…
Reference in new issue