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

10 lines
262 B
Ruby
Raw Permalink Normal View History

2013-03-22 16:46:26 +00:00
class AddAutomaticToComments < ActiveRecord::Migration
def change
2014-01-21 04:51:49 +00:00
add_column :comments, :automatic, :boolean, default: false
add_index :comments, :commentable_type
add_index :comments, :automatic
add_index :comments, :commentable_id
2013-03-22 16:46:26 +00:00
end
end