From 2196d7c4567aafd89dbb27db6e646a899b592703 Mon Sep 17 00:00:00 2001 From: MoisesMachado Date: Mon, 30 Jul 2007 17:06:43 +0000 Subject: [PATCH] ActionItem6: some fixes in the has_many affiliations in the person model --- db/migrate/007_create_affiliations.rb | 2 +- test/fixtures/profiles.yml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/db/migrate/007_create_affiliations.rb b/db/migrate/007_create_affiliations.rb index 4bcfd7c..cfe97a4 100644 --- a/db/migrate/007_create_affiliations.rb +++ b/db/migrate/007_create_affiliations.rb @@ -1,7 +1,7 @@ class CreateAffiliations < ActiveRecord::Migration def self.up create_table :affiliations do |t| - t.column :user_id, :integer + t.column :person_id, :integer t.column :profile_id, :integer end end diff --git a/test/fixtures/profiles.yml b/test/fixtures/profiles.yml index 4bd77a7..ca38ee3 100644 --- a/test/fixtures/profiles.yml +++ b/test/fixtures/profiles.yml @@ -38,3 +38,12 @@ ze: flexible_template_template: 'default' flexible_template_icon_theme: 'default' flexible_template_theme: 'default' +colivre: + id: 5 + name: "cooptec_livre" + type: 'Enterprise' + identifier: 'colivre' + virtual_community_id: 1 + flexible_template_template: 'default' + flexible_template_icon_theme: 'default' + flexible_template_theme: 'default' -- libgit2 0.21.2