social_stream-base 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,17 @@
|
|
1
|
+
class AddMissingActivivityIndexes < ActiveRecord::Migration
|
2
|
+
def up
|
3
|
+
add_index "activities", "author_id", :name => "index_activities_on_author_id"
|
4
|
+
add_index "activities", "user_author_id", :name => "index_activities_on_user_author_id"
|
5
|
+
add_index "activities", "owner_id", :name => "index_activities_on_owner_id"
|
6
|
+
|
7
|
+
add_foreign_key "activities", "actors", :column => :author_id, :name => "index_activities_on_author_id"
|
8
|
+
add_foreign_key "activities", "actors", :column => :user_author_id, :name => "index_activities_on_user_author_id"
|
9
|
+
add_foreign_key "activities", "actors", :column => :owner_id, :name => "index_activities_on_owner_id"
|
10
|
+
end
|
11
|
+
|
12
|
+
def down
|
13
|
+
remove_foreign_key "activities", :name => "index_activities_on_author_id"
|
14
|
+
remove_foreign_key "activities", :name => "index_activities_on_user_author_id"
|
15
|
+
remove_foreign_key "activities", :name => "index_activities_on_owner_id"
|
16
|
+
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: social_stream-base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-01-
|
13
|
+
date: 2013-01-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: deep_merge
|
@@ -1089,6 +1089,7 @@ files:
|
|
1089
1089
|
- db/migrate/20120621135650_add_comment_count_to_activity_object.rb
|
1090
1090
|
- db/migrate/20120627115244_fix_activity_object_follower_count.rb
|
1091
1091
|
- db/migrate/20121031111857_create_sites.rb
|
1092
|
+
- db/migrate/20130114114602_add_missing_activivity_indexes.rb
|
1092
1093
|
- lib/acts_as_taggable_on/acts_as_taggable_on/dirty.rb
|
1093
1094
|
- lib/acts_as_taggable_on/social_stream.rb
|
1094
1095
|
- lib/generators/social_stream/base/install_generator.rb
|