parent
1b5c41b3ad
commit
cae882b3d6
@ -0,0 +1,5 @@
|
||||
class InviteList < ActiveRecord::Base
|
||||
attr_accessible :project_id, :user_id
|
||||
belongs_to :user
|
||||
belongs_to :project
|
||||
end
|
@ -0,0 +1,10 @@
|
||||
class CreateInviteLists < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :invite_lists do |t|
|
||||
t.integer :project_id
|
||||
t.integer :user_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
@ -0,0 +1,7 @@
|
||||
FactoryGirl.define do
|
||||
factory :invite_list do
|
||||
project_id 1
|
||||
user_id 1
|
||||
end
|
||||
|
||||
end
|
@ -0,0 +1,5 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe InviteList, :type => :model do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
Loading…
Reference in new issue