diff options
author | carolina <carolina@sindominio.net> | 2013-07-17 14:50:30 +0400 |
---|---|---|
committer | Jonne Haß <me@mrzyx.de> | 2013-07-31 17:15:08 +0400 |
commit | f6fe74aeaed314382b256d5f4b355c99000de43c (patch) | |
tree | f7d64b4a68de24a631669b8084729d5c78247522 /config/initializers | |
parent | 4710144b028cce64f3a19f56cb9cae0915fca5af (diff) |
Migration to turn ActivityStreams::Photo to StatusMessage
deletes ActivityStream model and all it's references
update migration with the without_protection option to disable mass assignment protection
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/rails_admin.rb | 58 |
1 files changed, 4 insertions, 54 deletions
diff --git a/config/initializers/rails_admin.rb b/config/initializers/rails_admin.rb index a666dcb54..becc7b84e 100644 --- a/config/initializers/rails_admin.rb +++ b/config/initializers/rails_admin.rb @@ -40,10 +40,10 @@ RailsAdmin.config do |config| # ==> Included models # Add all excluded models here: - config.excluded_models = [ActivityStreams::Photo, AspectMembership, AspectVisibility, ShareVisibility, ConversationVisibility, NotificationActor, Notifications::AlsoCommented, Notifications::CommentOnPost, Notifications::Liked, Notifications::Mentioned, Notifications::PrivateMessage, Notifications::RequestAccepted, Notifications::Reshared, Notifications::StartedSharing, Reshare, Services::Facebook, Services::Tumblr, Services::Twitter, UserPreference] + config.excluded_models = [AspectMembership, AspectVisibility, ShareVisibility, ConversationVisibility, NotificationActor, Notifications::AlsoCommented, Notifications::CommentOnPost, Notifications::Liked, Notifications::Mentioned, Notifications::PrivateMessage, Notifications::RequestAccepted, Notifications::Reshared, Notifications::StartedSharing, Reshare, Services::Facebook, Services::Tumblr, Services::Twitter, UserPreference] # Add models here if you want to go 'whitelist mode': - # config.included_models = [AccountDeletion, ActivityStreams::Photo, ActsAsTaggableOn::Tag, Aspect, AspectMembership, AspectVisibility, Block, Comment, Contact, Conversation, ConversationVisibility, Invitation, InvitationCode, Like, Mention, Message, Notification, NotificationActor, Notifications::AlsoCommented, Notifications::CommentOnPost, Notifications::Liked, Notifications::Mentioned, Notifications::PrivateMessage, Notifications::RequestAccepted, Notifications::Reshared, Notifications::StartedSharing, OEmbedCache, Participation, Person, Photo, Pod, Post, Profile, Reshare, Service, ServiceUser, Services::Facebook, Services::Tumblr, Services::Twitter, ShareVisibility, StatusMessage, TagFollowing, User, UserPreference] + # config.included_models = [AccountDeletion, ActsAsTaggableOn::Tag, Aspect, AspectMembership, AspectVisibility, Block, Comment, Contact, Conversation, ConversationVisibility, Invitation, InvitationCode, Like, Mention, Message, Notification, NotificationActor, Notifications::AlsoCommented, Notifications::CommentOnPost, Notifications::Liked, Notifications::Mentioned, Notifications::PrivateMessage, Notifications::RequestAccepted, Notifications::Reshared, Notifications::StartedSharing, OEmbedCache, Participation, Person, Photo, Pod, Post, Profile, Reshare, Service, ServiceUser, Services::Facebook, Services::Tumblr, Services::Twitter, ShareVisibility, StatusMessage, TagFollowing, User, UserPreference] # Application wide tried label methods for models' instances # config.label_methods << :description # Default is [:name, :title] @@ -101,57 +101,7 @@ RailsAdmin.config do |config| # create do; end # update do; end # end - # config.model ActivityStreams::Photo do - # # Found associations: - # configure :author, :belongs_to_association - # configure :reshares, :has_many_association - # configure :o_embed_cache, :belongs_to_association - # configure :likes, :has_many_association - # configure :dislikes, :has_many_association - # configure :comments, :has_many_association - # configure :aspect_visibilities, :has_many_association - # configure :aspects, :has_many_association - # configure :share_visibilities, :has_many_association - # configure :contacts, :has_many_association - # configure :participations, :has_many_association - # configure :mentions, :has_many_association - # configure :resharers, :has_many_association # # Found columns: - # configure :id, :integer - # configure :author_id, :integer # Hidden - # configure :public, :boolean - # configure :diaspora_handle, :string - # configure :guid, :string - # configure :pending, :boolean - # configure :type, :string - # configure :text, :text - # configure :remote_photo_path, :text - # configure :remote_photo_name, :string - # configure :random_string, :string - # configure :processed_image, :string - # configure :created_at, :datetime - # configure :updated_at, :datetime - # configure :unprocessed_image, :string - # configure :object_url, :string - # configure :image_url, :string - # configure :image_height, :integer - # configure :image_width, :integer - # configure :provider_display_name, :string - # configure :actor_url, :string - # configure :objectId, :string - # configure :root_guid, :string # Hidden - # configure :status_message_guid, :string - # configure :likes_count, :integer - # configure :comments_count, :integer - # configure :o_embed_cache_id, :integer # Hidden - # configure :reshares_count, :integer - # configure :interacted_at, :datetime # # Sections: - # list do; end - # export do; end - # show do; end - # edit do; end - # create do; end - # update do; end - # end + # config.model ActsAsTaggableOn::Tag do # # Found associations: # configure :taggings, :has_many_association # Hidden # # Found columns: @@ -1109,4 +1059,4 @@ RailsAdmin.config do |config| # update do; end # end end -end
\ No newline at end of file +end |