diff --git a/app/assets/javascripts/app/collections/posts.js b/app/assets/javascripts/app/collections/posts.js index 9805e75e8dfc8fa3e9fadf39dae1ce858dd8fab3..47c60b682169c002110546a8b652db4ef0e06724 100644 --- a/app/assets/javascripts/app/collections/posts.js +++ b/app/assets/javascripts/app/collections/posts.js @@ -2,7 +2,3 @@ app.collections.Posts = Backbone.Collection.extend({ model: app.models.Post, url : "/posts" }); - -app.collection.PublicPosts = app.collection.Posts.extend({ - url : '/public' -}) \ No newline at end of file diff --git a/db/schema.rb b/db/schema.rb index b71f2408ee8730081c9a68b33de9509da610862c..7cb2c7b8364bbc630bb00931a90e5262f2c4fa33 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -107,6 +107,8 @@ ActiveRecord::Schema.define(:version => 20120521191429) do t.datetime "updated_at", :null => false end + add_index "conversations", ["author_id"], :name => "conversations_author_id_fk" + create_table "invitation_codes", :force => true do |t| t.string "token" t.integer "user_id" @@ -144,6 +146,7 @@ ActiveRecord::Schema.define(:version => 20120521191429) do t.string "target_type", :limit => 60, :null => false end + add_index "likes", ["author_id"], :name => "likes_author_id_fk" add_index "likes", ["guid"], :name => "index_likes_on_guid", :unique => true add_index "likes", ["target_id", "author_id", "target_type"], :name => "index_likes_on_target_id_and_author_id_and_target_type", :unique => true add_index "likes", ["target_id"], :name => "index_likes_on_post_id" @@ -169,6 +172,7 @@ ActiveRecord::Schema.define(:version => 20120521191429) do end add_index "messages", ["author_id"], :name => "index_messages_on_author_id" + add_index "messages", ["conversation_id"], :name => "messages_conversation_id_fk" create_table "notification_actors", :force => true do |t| t.integer "notification_id" @@ -200,7 +204,7 @@ ActiveRecord::Schema.define(:version => 20120521191429) do t.text "data", :null => false end - add_index "o_embed_caches", ["url"], :name => "index_o_embed_caches_on_url" + add_index "o_embed_caches", ["url"], :name => "index_o_embed_caches_on_url", :length => {"url"=>255} create_table "participations", :force => true do |t| t.string "guid"