Sha256: 408399cbd2b7723e0c167bb1043143bffc6a8a501b6137999e454e9ae009982e

Contents?: true

Size: 221 Bytes

Versions: 13

Compression:

Stored size: 221 Bytes

Contents

class AddSpamToComments < ActiveRecord::Migration
  def up
    change_table :almanac_comments do |t|
      t.boolean :spam, :default => false
    end
  end

  def down
    remove_column :almanac_comments, :spam
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
almanac-0.8.0 db/migrate/20121102185130_add_spam_to_comments.rb
almanac-0.7.4 db/migrate/20121102185130_add_spam_to_comments.rb
almanac-0.7.3 db/migrate/20121102185130_add_spam_to_comments.rb
almanac-0.7.2 db/migrate/20121102185130_add_spam_to_comments.rb
almanac-0.7.1 db/migrate/20121102185130_add_spam_to_comments.rb
almanac-0.6.1 db/migrate/20121102185130_add_spam_to_comments.rb
almanac-0.6.0 db/migrate/20121102185130_add_spam_to_comments.rb
almanac-0.5.3 db/migrate/20121102185130_add_spam_to_comments.rb
almanac-0.5.2 db/migrate/20121102185130_add_spam_to_comments.rb
almanac-0.5.1 db/migrate/20121102185130_add_spam_to_comments.rb
almanac-0.5.0 db/migrate/20121102185130_add_spam_to_comments.rb
almanac-0.4.5 db/migrate/20121102185130_add_spam_to_comments.rb
almanac-0.4.4 db/migrate/20121102185130_add_spam_to_comments.rb