Commit 2196d7c4567aafd89dbb27db6e646a899b592703

Authored by MoisesMachado
1 parent c4e184f5

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
db/migrate/007_create_affiliations.rb
1 1 class CreateAffiliations < ActiveRecord::Migration
2 2 def self.up
3 3 create_table :affiliations do |t|
4   - t.column :user_id, :integer
  4 + t.column :person_id, :integer
5 5 t.column :profile_id, :integer
6 6 end
7 7 end
... ...
test/fixtures/profiles.yml
... ... @@ -38,3 +38,12 @@ ze:
38 38 flexible_template_template: 'default'
39 39 flexible_template_icon_theme: 'default'
40 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'
... ...