asciinema.org/db/migrate/20120406115845_add_likes_count_to_asciicast.rb

7 lines
203 B
Ruby
Raw Normal View History

2012-04-06 12:06:40 +00:00
class AddLikesCountToAsciicast < ActiveRecord::Migration
def change
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