social_stream 0.24.1 → 0.25.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. data/base/app/assets/javascripts/social_stream.action.js +40 -0
  2. data/base/app/assets/javascripts/social_stream.comments.js +26 -1
  3. data/base/app/assets/javascripts/social_stream.timeline.js +15 -7
  4. data/base/app/assets/javascripts/social_stream.wall.js.erb +1 -0
  5. data/base/app/assets/stylesheets/social_stream-base.css.scss +13 -0
  6. data/base/app/models/activity.rb +5 -1
  7. data/base/app/models/activity_action.rb +6 -0
  8. data/base/app/models/activity_object.rb +131 -9
  9. data/base/app/models/actor.rb +2 -0
  10. data/base/app/models/channel.rb +0 -1
  11. data/base/app/models/comment.rb +0 -6
  12. data/base/app/views/activity_actions/_update.js.erb +11 -0
  13. data/base/app/views/activity_actions/create.js.erb +1 -1
  14. data/base/app/views/activity_actions/update.js.erb +1 -1
  15. data/base/app/views/comments/create.js.erb +1 -1
  16. data/base/app/views/posts/create.js.erb +1 -1
  17. data/base/db/migrate/20120111141717_create_social_stream.rb +265 -0
  18. data/base/db/migrate/20120326083509_object_channels_to_actions.rb +45 -0
  19. data/base/lib/social_stream/ability/base.rb +2 -2
  20. data/base/lib/social_stream/base/version.rb +1 -1
  21. data/base/lib/social_stream/controllers/cancan_devise_integration.rb +9 -5
  22. data/base/lib/social_stream/models/object.rb +0 -72
  23. data/base/lib/social_stream/models/subject.rb +2 -1
  24. data/base/lib/social_stream/models/subtype.rb +6 -1
  25. data/base/spec/controllers/groups_controller_spec.rb +6 -0
  26. data/base/spec/factories/post.rb +6 -0
  27. data/base/spec/models/activity_action_spec.rb +35 -0
  28. data/documents/app/assets/javascripts/social_stream.video.js.erb +2 -1
  29. data/documents/app/controllers/documents_controller.rb +4 -1
  30. data/documents/app/models/document.rb +10 -0
  31. data/documents/app/models/video.rb +17 -1
  32. data/documents/app/views/videos/_video_processed.html.erb +1 -0
  33. data/documents/app/views/videos/_video_show.html.erb +2 -1
  34. data/documents/db/migrate/{20110615143707_create_social_stream_documents.rb → 20120109155431_create_social_stream_documents.rb} +9 -11
  35. data/documents/lib/social_stream/documents/engine.rb +1 -0
  36. data/documents/lib/social_stream/documents/version.rb +1 -1
  37. data/documents/social_stream-documents.gemspec +1 -1
  38. data/events/app/assets/javascripts/social_stream.calendar.js.erb +15 -9
  39. data/events/app/assets/javascripts/social_stream.events.action.js +31 -0
  40. data/events/db/migrate/20111218203314_create_events.rb +33 -0
  41. data/events/db/migrate/20120330131859_create_social_stream_events.rb +10 -0
  42. data/events/lib/social_stream/events/version.rb +1 -1
  43. data/events/social_stream-events.gemspec +1 -1
  44. data/lib/social_stream/version.rb +1 -1
  45. data/lib/tasks/migrations.rake +2 -0
  46. data/linkser/app/views/links/create.js.erb +1 -1
  47. data/linkser/db/migrate/{20111129100618_create_social_stream_linkser.rb → 20111219122952_create_social_stream_linkser.rb} +4 -7
  48. data/linkser/lib/social_stream/linkser/version.rb +1 -1
  49. data/linkser/social_stream-linkser.gemspec +1 -1
  50. data/presence/db/migrate/20120330132148_create_social_stream_presence.rb +10 -0
  51. data/presence/lib/social_stream/presence/version.rb +1 -1
  52. data/presence/social_stream-presence.gemspec +1 -1
  53. data/social_stream.gemspec +5 -5
  54. metadata +42 -54
  55. data/base/app/assets/stylesheets/social_stream-base.css +0 -5
  56. data/base/app/views/activity_actions/_update_form.js.erb +0 -2
  57. data/base/db/migrate/20110610112023_create_social_stream.rb +0 -319
  58. data/base/db/migrate/20110705103202_empty_ties_count.rb +0 -17
  59. data/base/db/migrate/20110712090343_remove_spheres.rb +0 -30
  60. data/base/db/migrate/20110712142140_remove_permission_function.rb +0 -26
  61. data/base/db/migrate/20110912074426_add_reject_relation.rb +0 -29
  62. data/base/db/migrate/20111124100618_object_actors.rb +0 -52
  63. data/base/db/migrate/20111221103509_add_language_field.rb +0 -13
  64. data/base/db/migrate/20120103103125_add_channels.rb +0 -88
  65. data/base/db/migrate/20120109081509_update_notify_permissions.rb +0 -15
  66. data/base/db/migrate/20120111120920_remove_language_default.rb +0 -9
  67. data/base/db/migrate/20120111141717_activity_channels.rb +0 -74
  68. data/documents/db/migrate/20110922173707_add_file_processing_to_document.rb +0 -9
  69. data/documents/db/migrate/20111005112707_add_title_and_description_to_document.rb +0 -11
  70. data/documents/db/migrate/20120109155431_document_object_type.rb +0 -16
  71. data/events/db/migrate/20111101193523_create_events.rb +0 -13
  72. data/events/db/migrate/20111120104349_create_rooms.rb +0 -26
  73. data/events/db/migrate/20111204155637_add_scheduler.rb +0 -33
  74. data/events/db/migrate/20111218203314_change_scheduler.rb +0 -11
  75. data/linkser/db/migrate/20111219122952_add_width_height_to_link.rb +0 -15
@@ -1,7 +1,7 @@
1
1
  //Display the new post
2
2
  $("#wall").prepend("<%= escape_javascript(render @link.post_activity) %>");
3
3
 
4
- SocialStream.Timeline.newActivity("<%= escape_javascript dom_id(@link.post_activity) %>");
4
+ SocialStream.Timeline.create("<%= escape_javascript dom_id(@link.post_activity) %>");
5
5
 
6
6
  $("#link_preview").hide();
7
7
  $("#link_preview").html("");
@@ -1,5 +1,5 @@
1
1
  class CreateSocialStreamLinkser < ActiveRecord::Migration
2
- def self.up
2
+ def change
3
3
  create_table "links", :force => true do |t|
4
4
  t.integer "activity_object_id"
5
5
  t.datetime "created_at"
@@ -9,13 +9,10 @@ class CreateSocialStreamLinkser < ActiveRecord::Migration
9
9
  t.string "title"
10
10
  t.string "image"
11
11
  t.text "description"
12
+ t.integer "width", :default => 470
13
+ t.integer "height", :default => 353
12
14
  end
13
15
 
14
- add_index "links", "activity_object_id"
15
- end
16
-
17
- def self.down
18
- remove_foreign_key "links", :name => "links_on_activity_object_id"
19
- drop_table :links
16
+ add_index "links", ["activity_object_id"], :name => "index_links_on_activity_object_id"
20
17
  end
21
18
  end
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Linkser
3
- VERSION = "0.8.0".freeze
3
+ VERSION = "0.9.0".freeze
4
4
  end
5
5
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.files = `git ls-files`.split("\n")
13
13
 
14
14
  # Gem dependencies
15
- s.add_runtime_dependency('social_stream-base', '~> 0.18.0')
15
+ s.add_runtime_dependency('social_stream-base', '~> 0.19.0')
16
16
  s.add_runtime_dependency('linkser', '~> 0.0.10')
17
17
  # Development Gem dependencies
18
18
  s.add_development_dependency('sqlite3-ruby')
@@ -0,0 +1,10 @@
1
+ # SocialStream migrations live at least 10 minor versions.
2
+ # Then they are merged.
3
+ # This is a placeholder migration to merge SocialStreamPresence' migrations
4
+ class CreateSocialStreamPresence < ActiveRecord::Migration
5
+ def up
6
+ end
7
+
8
+ def down
9
+ end
10
+ end
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Presence
3
- VERSION = "0.11.0"
3
+ VERSION = "0.12.0"
4
4
  end
5
5
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.require_paths = ["lib"]
20
20
 
21
21
  # Gem dependencies
22
- s.add_runtime_dependency('social_stream-base', '~> 0.18.0')
22
+ s.add_runtime_dependency('social_stream-base', '~> 0.19.0')
23
23
 
24
24
  s.add_runtime_dependency "xmpp4r"
25
25
 
@@ -11,11 +11,11 @@ Gem::Specification.new do |s|
11
11
  s.files = `git ls-files`.split("\n")
12
12
 
13
13
  # Gem dependencies
14
- s.add_runtime_dependency('social_stream-base', '~> 0.18.1')
15
- s.add_runtime_dependency('social_stream-documents', '~> 0.12.1')
16
- s.add_runtime_dependency('social_stream-events', '~> 0.10.1')
17
- s.add_runtime_dependency('social_stream-linkser', '~> 0.8.0')
18
- s.add_runtime_dependency('social_stream-presence', '~> 0.11.0')
14
+ s.add_runtime_dependency('social_stream-base', '~> 0.19.0')
15
+ s.add_runtime_dependency('social_stream-documents', '~> 0.13.0')
16
+ s.add_runtime_dependency('social_stream-events', '~> 0.11.0')
17
+ s.add_runtime_dependency('social_stream-linkser', '~> 0.9.0')
18
+ s.add_runtime_dependency('social_stream-presence', '~> 0.12.0')
19
19
 
20
20
  # Development Gem dependencies
21
21
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_stream
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.1
4
+ version: 0.25.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,66 +10,66 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-03-27 00:00:00.000000000Z
13
+ date: 2012-04-02 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: social_stream-base
17
- requirement: &83135900 !ruby/object:Gem::Requirement
17
+ requirement: &84203640 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
21
21
  - !ruby/object:Gem::Version
22
- version: 0.18.1
22
+ version: 0.19.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *83135900
25
+ version_requirements: *84203640
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: social_stream-documents
28
- requirement: &83196040 !ruby/object:Gem::Requirement
28
+ requirement: &84203100 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 0.12.1
33
+ version: 0.13.0
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *83196040
36
+ version_requirements: *84203100
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: social_stream-events
39
- requirement: &83207160 !ruby/object:Gem::Requirement
39
+ requirement: &84202540 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
43
43
  - !ruby/object:Gem::Version
44
- version: 0.10.1
44
+ version: 0.11.0
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *83207160
47
+ version_requirements: *84202540
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: social_stream-linkser
50
- requirement: &83209980 !ruby/object:Gem::Requirement
50
+ requirement: &84202170 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ~>
54
54
  - !ruby/object:Gem::Version
55
- version: 0.8.0
55
+ version: 0.9.0
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *83209980
58
+ version_requirements: *84202170
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: social_stream-presence
61
- requirement: &83211980 !ruby/object:Gem::Requirement
61
+ requirement: &84201850 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ~>
65
65
  - !ruby/object:Gem::Version
66
- version: 0.11.0
66
+ version: 0.12.0
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *83211980
69
+ version_requirements: *84201850
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: capybara
72
- requirement: &83218070 !ruby/object:Gem::Requirement
72
+ requirement: &84201380 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ~>
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: 0.3.9
78
78
  type: :development
79
79
  prerelease: false
80
- version_requirements: *83218070
80
+ version_requirements: *84201380
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: sqlite3
83
- requirement: &83989260 !ruby/object:Gem::Requirement
83
+ requirement: &84200740 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ! '>='
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: '0'
89
89
  type: :development
90
90
  prerelease: false
91
- version_requirements: *83989260
91
+ version_requirements: *84200740
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: ruby-debug19
94
- requirement: &84742420 !ruby/object:Gem::Requirement
94
+ requirement: &84200310 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ! '>='
@@ -99,10 +99,10 @@ dependencies:
99
99
  version: '0'
100
100
  type: :development
101
101
  prerelease: false
102
- version_requirements: *84742420
102
+ version_requirements: *84200310
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: rspec-rails
105
- requirement: &86595560 !ruby/object:Gem::Requirement
105
+ requirement: &84190140 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ~>
@@ -110,10 +110,10 @@ dependencies:
110
110
  version: 2.8.0
111
111
  type: :development
112
112
  prerelease: false
113
- version_requirements: *86595560
113
+ version_requirements: *84190140
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: factory_girl
116
- requirement: &86758550 !ruby/object:Gem::Requirement
116
+ requirement: &84189750 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
119
  - - ~>
@@ -121,10 +121,10 @@ dependencies:
121
121
  version: 1.3.2
122
122
  type: :development
123
123
  prerelease: false
124
- version_requirements: *86758550
124
+ version_requirements: *84189750
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: forgery
127
- requirement: &86893210 !ruby/object:Gem::Requirement
127
+ requirement: &84189340 !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
130
130
  - - ~>
@@ -132,10 +132,10 @@ dependencies:
132
132
  version: 0.4.2
133
133
  type: :development
134
134
  prerelease: false
135
- version_requirements: *86893210
135
+ version_requirements: *84189340
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: ci_reporter
138
- requirement: &87014320 !ruby/object:Gem::Requirement
138
+ requirement: &84188810 !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
141
141
  - - ~>
@@ -143,7 +143,7 @@ dependencies:
143
143
  version: 1.6.4
144
144
  type: :development
145
145
  prerelease: false
146
- version_requirements: *87014320
146
+ version_requirements: *84188810
147
147
  description: Social Stream is a Ruby on Rails engine for building social network websites.
148
148
  It supports contacts, posts, file uploads, private messages and many more.
149
149
  email:
@@ -340,6 +340,7 @@ files:
340
340
  - base/app/assets/javascripts/search.js.erb
341
341
  - base/app/assets/javascripts/settings.js
342
342
  - base/app/assets/javascripts/social_stream-base.js
343
+ - base/app/assets/javascripts/social_stream.action.js
343
344
  - base/app/assets/javascripts/social_stream.activity.js
344
345
  - base/app/assets/javascripts/social_stream.comments.js
345
346
  - base/app/assets/javascripts/social_stream.objects.js
@@ -385,7 +386,7 @@ files:
385
386
  - base/app/assets/stylesheets/relation_customs.css.scss
386
387
  - base/app/assets/stylesheets/search.css.scss
387
388
  - base/app/assets/stylesheets/settings.css
388
- - base/app/assets/stylesheets/social_stream-base.css
389
+ - base/app/assets/stylesheets/social_stream-base.css.scss
389
390
  - base/app/assets/stylesheets/ties.css.scss
390
391
  - base/app/assets/stylesheets/toolbar.css
391
392
  - base/app/assets/stylesheets/users.css
@@ -472,7 +473,7 @@ files:
472
473
  - base/app/views/activities/index.js.erb
473
474
  - base/app/views/activity_actions/_follow_form.html.erb
474
475
  - base/app/views/activity_actions/_follow_sentence.html.erb
475
- - base/app/views/activity_actions/_update_form.js.erb
476
+ - base/app/views/activity_actions/_update.js.erb
476
477
  - base/app/views/activity_actions/create.js.erb
477
478
  - base/app/views/activity_actions/update.js.erb
478
479
  - base/app/views/activity_objects/_activity_object.html.erb
@@ -664,22 +665,13 @@ files:
664
665
  - base/config/locales/rails.es.yml
665
666
  - base/config/locales/rails.pt.yml
666
667
  - base/config/routes.rb
667
- - base/db/migrate/20110610112023_create_social_stream.rb
668
- - base/db/migrate/20110705103202_empty_ties_count.rb
669
- - base/db/migrate/20110712090343_remove_spheres.rb
670
- - base/db/migrate/20110712142140_remove_permission_function.rb
671
- - base/db/migrate/20110912074426_add_reject_relation.rb
672
- - base/db/migrate/20111124100618_object_actors.rb
673
- - base/db/migrate/20111221103509_add_language_field.rb
674
- - base/db/migrate/20120103103125_add_channels.rb
675
- - base/db/migrate/20120109081509_update_notify_permissions.rb
676
- - base/db/migrate/20120111120920_remove_language_default.rb
677
- - base/db/migrate/20120111141717_activity_channels.rb
668
+ - base/db/migrate/20120111141717_create_social_stream.rb
678
669
  - base/db/migrate/20120201185454_singleton_single_relations.rb
679
670
  - base/db/migrate/20120208135718_group_title_and_description_in_activity_object.rb
680
671
  - base/db/migrate/20120302215722_activity_object_properties.rb
681
672
  - base/db/migrate/20120316093946_create_activity_actions.rb
682
673
  - base/db/migrate/20120316113728_activity_action_follow.rb
674
+ - base/db/migrate/20120326083509_object_channels_to_actions.rb
683
675
  - base/lib/acts_as_taggable_on/acts_as_taggable_on/dirty.rb
684
676
  - base/lib/acts_as_taggable_on/social_stream.rb
685
677
  - base/lib/generators/social_stream/base/install_generator.rb
@@ -948,10 +940,7 @@ files:
948
940
  - documents/config/locales/en.yml
949
941
  - documents/config/locales/es.yml
950
942
  - documents/config/routes.rb
951
- - documents/db/migrate/20110615143707_create_social_stream_documents.rb
952
- - documents/db/migrate/20110922173707_add_file_processing_to_document.rb
953
- - documents/db/migrate/20111005112707_add_title_and_description_to_document.rb
954
- - documents/db/migrate/20120109155431_document_object_type.rb
943
+ - documents/db/migrate/20120109155431_create_social_stream_documents.rb
955
944
  - documents/db/migrate/20120208143721_documents_group_title_and_description_in_activity_object.rb
956
945
  - documents/lib/delayed_paperclip/social_stream-documents.rb
957
946
  - documents/lib/generators/social_stream/documents/install_generator.rb
@@ -1034,6 +1023,7 @@ files:
1034
1023
  - events/app/assets/javascripts/social_stream-events.js
1035
1024
  - events/app/assets/javascripts/social_stream.calendar.js.erb
1036
1025
  - events/app/assets/javascripts/social_stream.event.js
1026
+ - events/app/assets/javascripts/social_stream.events.action.js
1037
1027
  - events/app/assets/javascripts/social_stream.events.poster.js
1038
1028
  - events/app/assets/javascripts/social_stream.events.tools.js.coffee
1039
1029
  - events/app/assets/stylesheets/events.css.scss
@@ -1067,12 +1057,10 @@ files:
1067
1057
  - events/config/locales/en.yml
1068
1058
  - events/config/locales/es.yml
1069
1059
  - events/config/routes.rb
1070
- - events/db/migrate/20111101193523_create_events.rb
1071
- - events/db/migrate/20111120104349_create_rooms.rb
1072
- - events/db/migrate/20111204155637_add_scheduler.rb
1073
- - events/db/migrate/20111218203314_change_scheduler.rb
1060
+ - events/db/migrate/20111218203314_create_events.rb
1074
1061
  - events/db/migrate/20120208143756_events_group_title_and_description_in_activity_object.rb
1075
1062
  - events/db/migrate/20120208144948_add_events_foreign_key.rb
1063
+ - events/db/migrate/20120330131859_create_social_stream_events.rb
1076
1064
  - events/lib/generators/social_stream/events/install_generator.rb
1077
1065
  - events/lib/social_stream-events.rb
1078
1066
  - events/lib/social_stream/events/ability.rb
@@ -1128,8 +1116,7 @@ files:
1128
1116
  - linkser/config/locales/en.yml
1129
1117
  - linkser/config/locales/es.yml
1130
1118
  - linkser/config/routes.rb
1131
- - linkser/db/migrate/20111129100618_create_social_stream_linkser.rb
1132
- - linkser/db/migrate/20111219122952_add_width_height_to_link.rb
1119
+ - linkser/db/migrate/20111219122952_create_social_stream_linkser.rb
1133
1120
  - linkser/db/migrate/20120202104549_add_links_foreign_key.rb
1134
1121
  - linkser/db/migrate/20120208143739_linkser_group_title_and_description_in_activity_object.rb
1135
1122
  - linkser/lib/generators/social_stream/linkser/install_generator.rb
@@ -1319,6 +1306,7 @@ files:
1319
1306
  - presence/db/migrate/20110711111408_add_connected_column_to_user.rb
1320
1307
  - presence/db/migrate/20110928135031_add_status_column_to_user.rb
1321
1308
  - presence/db/migrate/20111116194112_add_chat_enabled_column_to_user.rb
1309
+ - presence/db/migrate/20120330132148_create_social_stream_presence.rb
1322
1310
  - presence/ejabberd/conf/ejabberd_example.cfg
1323
1311
  - presence/ejabberd/conf/ssconfig_example.cfg
1324
1312
  - presence/ejabberd/ejabberd_files.zip
@@ -1,5 +0,0 @@
1
- /*
2
- *= require avatars_for_rails
3
- *
4
- *= require_tree .
5
- */
@@ -1,2 +0,0 @@
1
- $('.follow_form-<%= dom_id(activity_object) %>').replaceWith("<%= escape_javascript render(:partial => 'activity_actions/follow_form', :locals => { :activity_object => activity_object }) %>");
2
- $('.follow_sentence-<%= dom_id(activity_object) %>').replaceWith("<%= escape_javascript render(:partial => 'activity_actions/follow_sentence', :locals => { :activity_object => activity_object }) %>");
@@ -1,319 +0,0 @@
1
- class CreateSocialStream < ActiveRecord::Migration
2
- def self.up
3
- create_table "activities", :force => true do |t|
4
- t.integer "contact_id"
5
- t.integer "activity_verb_id"
6
- t.datetime "created_at"
7
- t.datetime "updated_at"
8
- t.string "ancestry"
9
- end
10
-
11
- add_index "activities", "contact_id"
12
- add_index "activities", "activity_verb_id"
13
-
14
- create_table "activity_object_activities", :force => true do |t|
15
- t.integer "activity_id"
16
- t.integer "activity_object_id"
17
- t.datetime "created_at"
18
- t.datetime "updated_at"
19
- t.string "object_type"
20
- end
21
-
22
- add_index "activity_object_activities", "activity_id"
23
- add_index "activity_object_activities", "activity_object_id"
24
-
25
- create_table "activity_objects", :force => true do |t|
26
- t.datetime "created_at"
27
- t.datetime "updated_at"
28
- t.string "object_type", :limit => 45
29
- t.integer "like_count", :default => 0
30
- end
31
-
32
- create_table "activity_verbs", :force => true do |t|
33
- t.string "name", :limit => 45
34
- t.datetime "created_at"
35
- t.datetime "updated_at"
36
- end
37
-
38
- create_table "actors", :force => true do |t|
39
- t.string "name"
40
- t.string "email", :default => "", :null => false
41
- t.string "slug"
42
- t.string "subject_type"
43
- t.boolean "notify_by_email", :default => true
44
- t.datetime "created_at"
45
- t.datetime "updated_at"
46
- t.integer "activity_object_id"
47
- t.integer "follower_count", :default => 0
48
- end
49
-
50
- add_index "actors", "activity_object_id"
51
- add_index "actors", "email"
52
- add_index "actors", "slug", :unique => true
53
-
54
- create_table "audiences", :force => true do |t|
55
- t.integer "relation_id"
56
- t.integer "activity_id"
57
- end
58
-
59
- add_index "audiences", "relation_id"
60
- add_index "audiences", "activity_id"
61
-
62
- create_table :authentications, :force => true do |t|
63
- t.integer :user_id
64
- t.string :provider
65
- t.string :uid
66
- t.timestamps
67
- end
68
-
69
- add_index "authentications", "user_id"
70
-
71
- create_table "avatars", :force => true do |t|
72
- t.integer "actor_id"
73
- t.string "logo_file_name"
74
- t.string "logo_content_type"
75
- t.integer "logo_file_size"
76
- t.datetime "logo_updated_at"
77
- t.boolean "active", :default => true
78
- end
79
-
80
- add_index "avatars", "actor_id"
81
-
82
- create_table "comments", :force => true do |t|
83
- t.integer "activity_object_id"
84
- t.text "text"
85
- t.datetime "created_at"
86
- t.datetime "updated_at"
87
- end
88
-
89
- add_index "comments", "activity_object_id"
90
-
91
- create_table "contacts", :force => true do |t|
92
- t.integer "sender_id"
93
- t.integer "receiver_id"
94
- t.datetime "created_at"
95
- t.datetime "updated_at"
96
- t.integer "inverse_id"
97
- t.integer "ties_count"
98
- end
99
-
100
- add_index "contacts", "receiver_id"
101
- add_index "contacts", "sender_id"
102
- add_index "contacts", "inverse_id"
103
-
104
- create_table "groups", :force => true do |t|
105
- t.integer "actor_id"
106
- t.datetime "created_at"
107
- t.datetime "updated_at"
108
- end
109
-
110
- add_index "groups", "actor_id"
111
-
112
- create_table "permissions", :force => true do |t|
113
- t.string "action"
114
- t.string "object", :default => nil
115
- t.string "function", :default => nil
116
- t.datetime "created_at"
117
- t.datetime "updated_at"
118
- end
119
-
120
-
121
- create_table "posts", :force => true do |t|
122
- t.integer "activity_object_id"
123
- t.datetime "created_at"
124
- t.datetime "updated_at"
125
- t.text "text"
126
- end
127
-
128
- add_index "posts", "activity_object_id"
129
-
130
- create_table "profiles", :force => true do |t|
131
- t.integer "actor_id"
132
- t.date "birthday"
133
- t.datetime "created_at"
134
- t.datetime "updated_at"
135
- t.string "organization", :limit => 45
136
- t.string "phone", :limit => 45
137
- t.string "mobile", :limit => 45
138
- t.string "fax", :limit => 45
139
- t.string "address"
140
- t.string "city"
141
- t.string "zipcode", :limit => 45
142
- t.string "province", :limit => 45
143
- t.string "country", :limit => 45
144
- t.integer "prefix_key"
145
- t.string "description"
146
- t.string "experience"
147
- t.string "website"
148
- t.string "skype", :limit => 45
149
- t.string "im", :limit => 45
150
- end
151
-
152
- add_index "profiles", "actor_id"
153
-
154
- create_table "relation_permissions", :force => true do |t|
155
- t.integer "relation_id"
156
- t.integer "permission_id"
157
- t.datetime "created_at"
158
- t.datetime "updated_at"
159
- t.integer "relation_id"
160
- end
161
-
162
- add_index "relation_permissions", "relation_id"
163
- add_index "relation_permissions", "permission_id"
164
-
165
- create_table "relations", :force => true do |t|
166
- t.integer "actor_id"
167
- t.string "type"
168
- t.string "name"
169
- t.datetime "created_at"
170
- t.datetime "updated_at"
171
- t.string "sender_type"
172
- t.string "receiver_type"
173
- t.string "ancestry"
174
- t.integer "sphere_id"
175
- end
176
-
177
- add_index "relations", "actor_id"
178
- add_index "relations", "ancestry"
179
- add_index "relations", "sphere_id"
180
-
181
- create_table "spheres", :force => true do |t|
182
- t.string "name"
183
- t.integer "actor_id"
184
- t.datetime "created_at"
185
- t.datetime "updated_at"
186
- end
187
-
188
- add_index "spheres", "actor_id"
189
-
190
- create_table "ties", :force => true do |t|
191
- t.integer "contact_id"
192
- t.integer "relation_id"
193
- t.datetime "created_at"
194
- t.datetime "updated_at"
195
- end
196
-
197
- add_index "ties", "contact_id"
198
- add_index "ties", "relation_id"
199
-
200
- create_table "users", :force => true do |t|
201
- t.string :encrypted_password, :null => false, :default => "", :limit => 128
202
- t.string :password_salt
203
-
204
- t.recoverable
205
- t.rememberable
206
- t.trackable
207
-
208
- # t.confirmable
209
- # t.lockable :lock_strategy => :failed_attempts, :unlock_strategy => :both
210
- t.token_authenticatable
211
-
212
- t.timestamps
213
- t.integer "actor_id"
214
- end
215
-
216
- add_index "users", "actor_id"
217
- add_index "users", :reset_password_token, :unique => true
218
- # add_index :users, :confirmation_token, :unique => true
219
- # add_index :users, :unlock_token, :unique => true
220
-
221
- add_foreign_key "activities", "contacts", :name => "index_activities_on_contact_id"
222
- add_foreign_key "activities", "activity_verbs", :name => "index_activities_on_activity_verb_id"
223
-
224
- add_foreign_key "activity_object_activities", "activities", :name => "index_activity_object_activities_on_activity_id"
225
- add_foreign_key "activity_object_activities", "activity_objects", :name => "activity_object_activities_on_activity_object_id"
226
-
227
- add_foreign_key "actors", "activity_objects", :name => "actors_on_activity_object_id"
228
-
229
- add_foreign_key "audiences", "relations", :name => "audiences_on_relation_id"
230
- add_foreign_key "audiences", "activities", :name => "audiences_on_activity_id"
231
-
232
- add_foreign_key "authentications", "users", :name => "authentications_on_user_id"
233
-
234
- add_foreign_key "avatars", "actors", :name => "avatars_on_actor_id"
235
-
236
- add_foreign_key "comments", "activity_objects", :name => "comments_on_activity_object_id"
237
- add_foreign_key "contacts", "actors", :name => "contacts_on_receiver_id", :column => "receiver_id"
238
- add_foreign_key "contacts", "actors", :name => "contacts_on_sender_id", :column => "sender_id"
239
-
240
- add_foreign_key "groups", "actors", :name => "groups_on_actor_id"
241
-
242
- add_foreign_key "posts", "activity_objects", :name => "posts_on_activity_object_id"
243
-
244
- add_foreign_key "profiles", "actors", :name => "profiles_on_actor_id"
245
-
246
- add_foreign_key "relation_permissions", "relations", :name => "relation_permissions_on_relation_id"
247
- add_foreign_key "relation_permissions", "permissions", :name => "relation_permissions_on_permission_id"
248
-
249
- add_foreign_key "relations", "actors", :name => "relations_on_actor_id"
250
- add_foreign_key "relations", "spheres", :name => "relations_on_sphere_id"
251
-
252
- add_foreign_key "spheres", "actors", :name => "spheres_on_actor_id"
253
-
254
- add_foreign_key "ties", "contacts", :name => "ties_on_contact_id"
255
- add_foreign_key "ties", "relations", :name => "ties_on_relation_id"
256
-
257
- add_foreign_key "users", "actors", :name => "users_on_actor_id"
258
- end
259
-
260
-
261
- def self.down
262
- remove_foreign_key "activities", :name => "index_activities_on_activity_verb_id"
263
-
264
- remove_foreign_key "activity_object_activities", :name => "index_activity_object_activities_on_activity_id"
265
- remove_foreign_key "activity_object_activities", :name => "activity_object_activities_on_activity_object_id"
266
-
267
- remove_foreign_key "actors", :name => "actors_on_activity_object_id"
268
-
269
- remove_foreign_key "audiences", :name => "audiences_on_relation_id"
270
- remove_foreign_key "audiences", :name => "audiences_on_activity_id"
271
-
272
- remove_foreign_key "authentications", :name => "authentications_on_user_id"
273
-
274
- remove_foreign_key "avatars", :name => "avatars_on_actor_id"
275
-
276
- remove_foreign_key "comments", :name => "comments_on_activity_object_id"
277
-
278
- remove_foreign_key "contacts", :name => "contacts_on_receiver_id", :column => "receiver_id"
279
- remove_foreign_key "contacts", :name => "contacts_on_sender_id", :column => "sender_id"
280
-
281
- remove_foreign_key "groups", :name => "groups_on_actor_id"
282
-
283
- remove_foreign_key "posts", :name => "posts_on_activity_object_id"
284
-
285
- remove_foreign_key "profiles", :name => "profiles_on_actor_id"
286
-
287
- remove_foreign_key "relation_permissions", :name => "relation_permissions_on_relation_id"
288
- remove_foreign_key "relation_permissions", :name => "relation_permissions_on_permission_id"
289
-
290
- remove_foreign_key "relations", :name => "relations_on_actor_id"
291
- remove_foreign_key "relations", :name => "relations_on_sphere_id"
292
-
293
- remove_foreign_key "spheres", :name => "spheres_on_actor_id"
294
-
295
- remove_foreign_key "ties", :name => "ties_on_contact_id"
296
- remove_foreign_key "ties", :name => "ties_on_relation_id"
297
-
298
- remove_foreign_key "users", :name => "users_on_actor_id"
299
-
300
- drop_table :activities
301
- drop_table :activity_object_activities
302
- drop_table :activity_objects
303
- drop_table :activity_verbs
304
- drop_table :actors
305
- drop_table :authentications
306
- drop_table :avatars
307
- drop_table :comments
308
- drop_table :contacts
309
- drop_table :groups
310
- drop_table :permissions
311
- drop_table :posts
312
- drop_table :profiles
313
- drop_table :relation_permissions
314
- drop_table :relations
315
- drop_table :spheres
316
- drop_table :ties
317
- drop_table :users
318
- end
319
- end