Sha256: 9d1ce055c29ef06bcb0d6b31d2183d2f5e2ae397218a1b3c960dbf38467c9aa8
Contents?: true
Size: 806 Bytes
Versions: 14
Compression:
Stored size: 806 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 remove_column :topics, :updated_at remove_column :topics, :created_at 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_at, :datetime add_column :topics, :created_at, :datetime add_column :topics, :updated_by_id, :integer add_column :topics, :created_by_id, :integer end end
Version data entries
14 entries across 14 versions & 1 rubygems