2012-04-06 12:06:40 +00:00
|
|
|
class AddLikesCountToAsciicast < ActiveRecord::Migration
|
|
|
|
def change
|
2012-04-09 15:03:50 +00:00
|
|
|
add_column :asciicasts, :likes_count, :integer, :null => false, :default => 0
|
2012-04-06 12:06:40 +00:00
|
|
|
add_index :asciicasts, :likes_count
|
|
|
|
end
|
|
|
|
end
|