Sha256: 7168b8ceb9cbb61dc6baaacedb7bc8805cff77f3f5aad44ed0aa52fe5568d296
Contents?: true
Size: 634 Bytes
Versions: 12
Compression:
Stored size: 634 Bytes
Contents
class TopicMerelyAssociative < ActiveRecord::Migration def self.up remove_column :topics, :reader_id remove_column :topics, :first_post_id remove_column :topics, :last_post_id remove_column :topics, :posts_count remove_column :topics, :updated_by_id remove_column :topics, :created_by_id end def self.down add_column :topics, :reader_id, :integer add_column :topics, :first_post_id, :integer add_column :topics, :last_post_id, :integer add_column :topics, :posts_count, :integer add_column :topics, :updated_by_id, :integer add_column :topics, :created_by_id, :integer end end
Version data entries
12 entries across 12 versions & 1 rubygems