rosa-build/db/migrate/20130319172358_add_automati...

10 lines
262 B
Ruby

class AddAutomaticToComments < ActiveRecord::Migration
def change
add_column :comments, :automatic, :boolean, default: false
add_index :comments, :commentable_type
add_index :comments, :automatic
add_index :comments, :commentable_id
end
end