Sha256: 368604a9062c3c753d7fb4519c66a23dbbd958c7aea4a7cdb6d7c695ae230c6a

Contents?: true

Size: 997 Bytes

Versions: 12

Compression:

Stored size: 997 Bytes

Contents

# This migration comes from inkwell (originally 20130212130878)
class ChangeCommunityTableForAddingTypesAndUserAccess < ActiveRecord::Migration
  def change
    if ::Inkwell::Engine::config.respond_to?('community_table')
      add_column ::Inkwell::Engine::config.community_table, :default_user_access, :string, :default => 'w'
      add_column ::Inkwell::Engine::config.community_table, :writers_ids, :text, :default => '[]'
      add_column ::Inkwell::Engine::config.community_table, :banned_ids, :text, :default => '[]'
      add_column ::Inkwell::Engine::config.community_table, :muted_ids, :text, :default => '[]'
      add_column ::Inkwell::Engine::config.community_table, :invitations_uids, :text, :default => '[]'
      add_column ::Inkwell::Engine::config.community_table, :public, :boolean, :default => true
      rename_column ::Inkwell::Engine::config.user_table, :communities_ids, :communities_info
      remove_column ::Inkwell::Engine::config.user_table, :admin_of
    end
  end
end

Version data entries

12 entries across 6 versions & 1 rubygems

Version Path
inkwell-2.0.0 test/dummy_without_community/db/migrate/20130219152806_change_community_table_for_adding_types_and_user_access.inkwell.rb
inkwell-2.0.0 test/dummy/db/migrate/20130217135512_change_community_table_for_adding_types_and_user_access.inkwell.rb
inkwell-1.5.2 test/dummy_without_community/db/migrate/20130219152806_change_community_table_for_adding_types_and_user_access.inkwell.rb
inkwell-1.5.2 test/dummy/db/migrate/20130217135512_change_community_table_for_adding_types_and_user_access.inkwell.rb
inkwell-1.5.1 test/dummy_without_community/db/migrate/20130219152806_change_community_table_for_adding_types_and_user_access.inkwell.rb
inkwell-1.5.1 test/dummy/db/migrate/20130217135512_change_community_table_for_adding_types_and_user_access.inkwell.rb
inkwell-1.4.1 test/dummy_without_community/db/migrate/20130219152806_change_community_table_for_adding_types_and_user_access.inkwell.rb
inkwell-1.4.1 test/dummy/db/migrate/20130217135512_change_community_table_for_adding_types_and_user_access.inkwell.rb
inkwell-1.2.0 test/dummy/db/migrate/20130217135512_change_community_table_for_adding_types_and_user_access.inkwell.rb
inkwell-1.2.0 test/dummy_without_community/db/migrate/20130219152806_change_community_table_for_adding_types_and_user_access.inkwell.rb
inkwell-1.1.7 test/dummy_without_community/db/migrate/20130219152806_change_community_table_for_adding_types_and_user_access.inkwell.rb
inkwell-1.1.7 test/dummy/db/migrate/20130217135512_change_community_table_for_adding_types_and_user_access.inkwell.rb