Sha256: 8fb47cabcdcd795d467fb96c736a486d778cdf2a23c2f848a3fe7b5b60935f23
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
class ChangeTablesForCommunities < ActiveRecord::Migration def change change_column :inkwell_comments, :users_ids_who_favorite_it, :text, :default => '[]' change_column :inkwell_comments, :users_ids_who_comment_it, :text, :default => '[]' change_column :inkwell_comments, :users_ids_who_reblog_it, :text, :default => '[]' remove_column :inkwell_blog_items, "#{::Inkwell::Engine::config.user_table.to_s.singularize}_id" add_column :inkwell_blog_items, :owner_id, :integer add_column :inkwell_blog_items, :is_owner_user, :boolean change_column :inkwell_timeline_items, :from_source, :text, :default => '[]', :limit => nil if ::Inkwell::Engine::config.community_table add_column ::Inkwell::Engine::config.community_table, :users_ids, :text, :default => '[]' add_column ::Inkwell::Engine::config.community_table, :admins_info, :text, :default => '[]' add_column ::Inkwell::Engine::config.user_table, :communities_ids, :text, :default => '[]' add_column ::Inkwell::Engine::config.user_table, :admin_of, :text, :default => '[]' add_column ::Inkwell::Engine::config.community_table, :owner_id, :integer end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
inkwell-1.0.4 | db/migrate/20130202130010_change_tables_for_communities.rb |