Group entity. Group has many projects

This commit is contained in:
Dmitriy Zaporozhets 2012-10-02 18:17:12 +03:00
parent 2e1c3c52bc
commit fa3ae24ca7
8 changed files with 116 additions and 1 deletions

21
spec/factories/groups.rb Normal file
View file

@ -0,0 +1,21 @@
# == Schema Information
#
# Table name: groups
#
# id :integer not null, primary key
# name :string(255) not null
# code :string(255) not null
# owner_id :integer not null
# created_at :datetime not null
# updated_at :datetime not null
#
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :group do
name "MyString"
code "MyString"
owner_id 1
end
end