|
|
@ -39,7 +39,6 @@ ActiveRecord::Schema.define(:version => 20120406152447) do
|
|
|
|
|
|
|
|
|
|
|
|
add_index "asciicasts", ["created_at"], :name => "index_asciicasts_on_created_at"
|
|
|
|
add_index "asciicasts", ["created_at"], :name => "index_asciicasts_on_created_at"
|
|
|
|
add_index "asciicasts", ["featured"], :name => "index_asciicasts_on_featured"
|
|
|
|
add_index "asciicasts", ["featured"], :name => "index_asciicasts_on_featured"
|
|
|
|
add_index "asciicasts", ["likes_count"], :name => "index_asciicasts_on_likes_count"
|
|
|
|
|
|
|
|
add_index "asciicasts", ["recorded_at"], :name => "index_asciicasts_on_recorded_at"
|
|
|
|
add_index "asciicasts", ["recorded_at"], :name => "index_asciicasts_on_recorded_at"
|
|
|
|
add_index "asciicasts", ["user_id"], :name => "index_asciicasts_on_user_id"
|
|
|
|
add_index "asciicasts", ["user_id"], :name => "index_asciicasts_on_user_id"
|
|
|
|
add_index "asciicasts", ["user_token"], :name => "index_asciicasts_on_user_token"
|
|
|
|
add_index "asciicasts", ["user_token"], :name => "index_asciicasts_on_user_token"
|
|
|
@ -55,17 +54,6 @@ ActiveRecord::Schema.define(:version => 20120406152447) do
|
|
|
|
add_index "comments", ["asciicast_id"], :name => "index_comments_on_asciicast_id"
|
|
|
|
add_index "comments", ["asciicast_id"], :name => "index_comments_on_asciicast_id"
|
|
|
|
add_index "comments", ["user_id"], :name => "index_comments_on_user_id"
|
|
|
|
add_index "comments", ["user_id"], :name => "index_comments_on_user_id"
|
|
|
|
|
|
|
|
|
|
|
|
create_table "likes", :force => true do |t|
|
|
|
|
|
|
|
|
t.integer "asciicast_id", :null => false
|
|
|
|
|
|
|
|
t.integer "user_id", :null => false
|
|
|
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_index "likes", ["asciicast_id"], :name => "index_likes_on_asciicast_id"
|
|
|
|
|
|
|
|
add_index "likes", ["user_id", "asciicast_id"], :name => "index_likes_on_user_id_and_asciicast_id"
|
|
|
|
|
|
|
|
add_index "likes", ["user_id"], :name => "index_likes_on_user_id"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
create_table "user_tokens", :force => true do |t|
|
|
|
|
create_table "user_tokens", :force => true do |t|
|
|
|
|
t.integer "user_id", :null => false
|
|
|
|
t.integer "user_id", :null => false
|
|
|
|
t.string "token", :null => false
|
|
|
|
t.string "token", :null => false
|
|
|
|