Commit 2196d7c4567aafd89dbb27db6e646a899b592703
1 parent
c4e184f5
Exists in
master
and in
28 other branches
ActionItem6: some fixes in the has_many affiliations in the person model
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@209 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
10 additions
and
1 deletions
Show diff stats
db/migrate/007_create_affiliations.rb
1 | class CreateAffiliations < ActiveRecord::Migration | 1 | class CreateAffiliations < ActiveRecord::Migration |
2 | def self.up | 2 | def self.up |
3 | create_table :affiliations do |t| | 3 | create_table :affiliations do |t| |
4 | - t.column :user_id, :integer | 4 | + t.column :person_id, :integer |
5 | t.column :profile_id, :integer | 5 | t.column :profile_id, :integer |
6 | end | 6 | end |
7 | end | 7 | end |
test/fixtures/profiles.yml
@@ -38,3 +38,12 @@ ze: | @@ -38,3 +38,12 @@ ze: | ||
38 | flexible_template_template: 'default' | 38 | flexible_template_template: 'default' |
39 | flexible_template_icon_theme: 'default' | 39 | flexible_template_icon_theme: 'default' |
40 | flexible_template_theme: 'default' | 40 | flexible_template_theme: 'default' |
41 | +colivre: | ||
42 | + id: 5 | ||
43 | + name: "cooptec_livre" | ||
44 | + type: 'Enterprise' | ||
45 | + identifier: 'colivre' | ||
46 | + virtual_community_id: 1 | ||
47 | + flexible_template_template: 'default' | ||
48 | + flexible_template_icon_theme: 'default' | ||
49 | + flexible_template_theme: 'default' |