Sha256: 51841fed0f146c29636eaeadd0f98f3dab04a44bfa555c88b591bfd841048cbe
Contents?: true
Size: 493 Bytes
Versions: 11
Compression:
Stored size: 493 Bytes
Contents
class PagesCommentable < ActiveRecord::Migration def self.up add_column :pages, :commentable, :boolean, :default => true add_column :pages, :comments_closed, :boolean, :default => false add_column :topics, :page_id, :integer add_index :topics, :page_id, :name => "index_topics_on_page_id" end def self.down remove_column :pages, :commentable remove_column :pages, :comments_closed remove_column :topics, :page_id remove_index :topics, :page_id end end
Version data entries
11 entries across 11 versions & 1 rubygems