You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
329 B
Ruby
15 lines
329 B
Ruby
13 years ago
|
class CreateLikes < ActiveRecord::Migration
|
||
|
def change
|
||
|
create_table :likes do |t|
|
||
|
t.integer :asciicast_id, :null => false
|
||
|
t.integer :user_id, :null => false
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
|
||
|
add_index :likes, :asciicast_id
|
||
|
add_index :likes, :user_id
|
||
|
add_index :likes, [:user_id, :asciicast_id]
|
||
|
end
|
||
|
end
|