Commit
e40707bb2fd9c6449a7a4dea65647ec6bfea0c36
Exists in
master
and in
28 other branches
1.2+SPB2, 2_split_by_role, add_fields_in_api, api_fixies, api_pagination, api_private_token, api_tasks, article_hit_count, blog_page_bug, checkbox_to_user_can_edit_page, communities_ratings, communities_ratings_moderation, community_ratings_rebase, fix_cloned_article_parent, fix_gallery_image_url, fix_javascript_categories, fix_optional_fields, fix_suggest_article, fix_user_email_validation, highlight_block_fix, notification_plugin, notification_plugin_rebase, script_to_update, split_by_role, stable, temp_ratings, tests, tests_fixies
ActionItem7: adding skeleton files
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@429 3f533792-8f58-4932-b0fe-aaf55b0a4547
| @@ -0,0 +1,2 @@ |
| @@ -0,0 +1,2 @@ |
| |
1
| +class PersonInfo < ActiveRecord::Base |
| |
2
| +end |
| @@ -0,0 +1,13 @@ |
| @@ -0,0 +1,13 @@ |
| |
1
| +class CreatePersonInfos < ActiveRecord::Migration |
| |
2
| + def self.up |
| |
3
| + create_table :person_infos do |t| |
| |
4
| + t.column :photo, :text |
| |
5
| + t.column :address, :text |
| |
6
| + t.column :contact_information, :text |
| |
7
| + end |
| |
8
| + end |
| |
9
| + |
| |
10
| + def self.down |
| |
11
| + drop_table :person_infos |
| |
12
| + end |
| |
13
| +end |
| @@ -0,0 +1,9 @@ |
| @@ -0,0 +1,9 @@ |
| |
1
| +require File.dirname(__FILE__) + '/../test_helper' |
| |
2
| + |
| |
3
| +class PersonInfoTest < Test::Unit::TestCase |
| |
4
| + |
| |
5
| + # Replace this with your real tests. |
| |
6
| + def test_truth |
| |
7
| + assert true |
| |
8
| + end |
| |
9
| +end |