asciinema.org/db/migrate/20120406115845_add_likes_count_to_asciicast.rb
Marcin Kulik c4b5b16e6f Merge branch 'likes'
* likes:
  Data model for "Like"

Conflicts:
	app/models/user.rb
	db/schema.rb
2012-04-09 17:03:50 +02:00

7 lines
203 B
Ruby

class AddLikesCountToAsciicast < ActiveRecord::Migration
def change
add_column :asciicasts, :likes_count, :integer, :null => false, :default => 0
add_index :asciicasts, :likes_count
end
end