schema update - fix travis?
This commit is contained in:
parent
dcd3cc6e78
commit
3502aa10e4
1 changed files with 35 additions and 52 deletions
87
db/schema.rb
87
db/schema.rb
|
@ -1,4 +1,3 @@
|
||||||
# encoding: UTF-8
|
|
||||||
# This file is auto-generated from the current state of the database. Instead
|
# This file is auto-generated from the current state of the database. Instead
|
||||||
# of editing this file, please use the migrations feature of Active Record to
|
# of editing this file, please use the migrations feature of Active Record to
|
||||||
# incrementally modify your database, and then regenerate this schema definition.
|
# incrementally modify your database, and then regenerate this schema definition.
|
||||||
|
@ -28,10 +27,9 @@ ActiveRecord::Schema.define(version: 20160401133937) do
|
||||||
t.string "queue"
|
t.string "queue"
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
|
t.index ["priority", "run_at"], name: "delayed_jobs_priority", using: :btree
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "delayed_jobs", ["priority", "run_at"], name: "delayed_jobs_priority", using: :btree
|
|
||||||
|
|
||||||
create_table "events", force: :cascade do |t|
|
create_table "events", force: :cascade do |t|
|
||||||
t.string "kind", limit: 255
|
t.string "kind", limit: 255
|
||||||
t.integer "eventable_id"
|
t.integer "eventable_id"
|
||||||
|
@ -41,24 +39,22 @@ ActiveRecord::Schema.define(version: 20160401133937) do
|
||||||
t.integer "sequence_id"
|
t.integer "sequence_id"
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
|
t.index ["eventable_type", "eventable_id"], name: "index_events_on_eventable_type_and_eventable_id", using: :btree
|
||||||
|
t.index ["map_id", "sequence_id"], name: "index_events_on_map_id_and_sequence_id", unique: true, using: :btree
|
||||||
|
t.index ["map_id"], name: "index_events_on_map_id", using: :btree
|
||||||
|
t.index ["sequence_id"], name: "index_events_on_sequence_id", using: :btree
|
||||||
|
t.index ["user_id"], name: "index_events_on_user_id", using: :btree
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "events", ["eventable_type", "eventable_id"], name: "index_events_on_eventable_type_and_eventable_id", using: :btree
|
|
||||||
add_index "events", ["map_id", "sequence_id"], name: "index_events_on_map_id_and_sequence_id", unique: true, using: :btree
|
|
||||||
add_index "events", ["map_id"], name: "index_events_on_map_id", using: :btree
|
|
||||||
add_index "events", ["sequence_id"], name: "index_events_on_sequence_id", using: :btree
|
|
||||||
add_index "events", ["user_id"], name: "index_events_on_user_id", using: :btree
|
|
||||||
|
|
||||||
create_table "in_metacode_sets", force: :cascade do |t|
|
create_table "in_metacode_sets", force: :cascade do |t|
|
||||||
t.integer "metacode_id"
|
t.integer "metacode_id"
|
||||||
t.integer "metacode_set_id"
|
t.integer "metacode_set_id"
|
||||||
t.datetime "created_at", null: false
|
t.datetime "created_at", null: false
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
|
t.index ["metacode_id"], name: "index_in_metacode_sets_on_metacode_id", using: :btree
|
||||||
|
t.index ["metacode_set_id"], name: "index_in_metacode_sets_on_metacode_set_id", using: :btree
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "in_metacode_sets", ["metacode_id"], name: "index_in_metacode_sets_on_metacode_id", using: :btree
|
|
||||||
add_index "in_metacode_sets", ["metacode_set_id"], name: "index_in_metacode_sets_on_metacode_set_id", using: :btree
|
|
||||||
|
|
||||||
create_table "mappings", force: :cascade do |t|
|
create_table "mappings", force: :cascade do |t|
|
||||||
t.text "category"
|
t.text "category"
|
||||||
t.integer "xloc"
|
t.integer "xloc"
|
||||||
|
@ -71,14 +67,13 @@ ActiveRecord::Schema.define(version: 20160401133937) do
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
t.integer "mappable_id"
|
t.integer "mappable_id"
|
||||||
t.string "mappable_type"
|
t.string "mappable_type"
|
||||||
|
t.index ["map_id", "synapse_id"], name: "index_mappings_on_map_id_and_synapse_id", using: :btree
|
||||||
|
t.index ["map_id", "topic_id"], name: "index_mappings_on_map_id_and_topic_id", using: :btree
|
||||||
|
t.index ["map_id"], name: "index_mappings_on_map_id", using: :btree
|
||||||
|
t.index ["mappable_id", "mappable_type"], name: "index_mappings_on_mappable_id_and_mappable_type", using: :btree
|
||||||
|
t.index ["user_id"], name: "index_mappings_on_user_id", using: :btree
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "mappings", ["map_id", "synapse_id"], name: "index_mappings_on_map_id_and_synapse_id", using: :btree
|
|
||||||
add_index "mappings", ["map_id", "topic_id"], name: "index_mappings_on_map_id_and_topic_id", using: :btree
|
|
||||||
add_index "mappings", ["map_id"], name: "index_mappings_on_map_id", using: :btree
|
|
||||||
add_index "mappings", ["mappable_id", "mappable_type"], name: "index_mappings_on_mappable_id_and_mappable_type", using: :btree
|
|
||||||
add_index "mappings", ["user_id"], name: "index_mappings_on_user_id", using: :btree
|
|
||||||
|
|
||||||
create_table "maps", force: :cascade do |t|
|
create_table "maps", force: :cascade do |t|
|
||||||
t.text "name"
|
t.text "name"
|
||||||
t.boolean "arranged"
|
t.boolean "arranged"
|
||||||
|
@ -92,10 +87,9 @@ ActiveRecord::Schema.define(version: 20160401133937) do
|
||||||
t.string "screenshot_content_type"
|
t.string "screenshot_content_type"
|
||||||
t.integer "screenshot_file_size"
|
t.integer "screenshot_file_size"
|
||||||
t.datetime "screenshot_updated_at"
|
t.datetime "screenshot_updated_at"
|
||||||
|
t.index ["user_id"], name: "index_maps_on_user_id", using: :btree
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "maps", ["user_id"], name: "index_maps_on_user_id", using: :btree
|
|
||||||
|
|
||||||
create_table "messages", force: :cascade do |t|
|
create_table "messages", force: :cascade do |t|
|
||||||
t.text "message"
|
t.text "message"
|
||||||
t.integer "user_id"
|
t.integer "user_id"
|
||||||
|
@ -103,12 +97,11 @@ ActiveRecord::Schema.define(version: 20160401133937) do
|
||||||
t.string "resource_type"
|
t.string "resource_type"
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
|
t.index ["resource_id"], name: "index_messages_on_resource_id", using: :btree
|
||||||
|
t.index ["resource_type"], name: "index_messages_on_resource_type", using: :btree
|
||||||
|
t.index ["user_id"], name: "index_messages_on_user_id", using: :btree
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "messages", ["resource_id"], name: "index_messages_on_resource_id", using: :btree
|
|
||||||
add_index "messages", ["resource_type"], name: "index_messages_on_resource_type", using: :btree
|
|
||||||
add_index "messages", ["user_id"], name: "index_messages_on_user_id", using: :btree
|
|
||||||
|
|
||||||
create_table "metacode_sets", force: :cascade do |t|
|
create_table "metacode_sets", force: :cascade do |t|
|
||||||
t.string "name"
|
t.string "name"
|
||||||
t.text "desc"
|
t.text "desc"
|
||||||
|
@ -116,10 +109,9 @@ ActiveRecord::Schema.define(version: 20160401133937) do
|
||||||
t.boolean "mapperContributed"
|
t.boolean "mapperContributed"
|
||||||
t.datetime "created_at", null: false
|
t.datetime "created_at", null: false
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
|
t.index ["user_id"], name: "index_metacode_sets_on_user_id", using: :btree
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "metacode_sets", ["user_id"], name: "index_metacode_sets_on_user_id", using: :btree
|
|
||||||
|
|
||||||
create_table "metacodes", force: :cascade do |t|
|
create_table "metacodes", force: :cascade do |t|
|
||||||
t.text "name"
|
t.text "name"
|
||||||
t.string "manual_icon"
|
t.string "manual_icon"
|
||||||
|
@ -141,10 +133,9 @@ ActiveRecord::Schema.define(version: 20160401133937) do
|
||||||
t.datetime "created_at", null: false
|
t.datetime "created_at", null: false
|
||||||
t.datetime "revoked_at"
|
t.datetime "revoked_at"
|
||||||
t.string "scopes"
|
t.string "scopes"
|
||||||
|
t.index ["token"], name: "index_oauth_access_grants_on_token", unique: true, using: :btree
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "oauth_access_grants", ["token"], name: "index_oauth_access_grants_on_token", unique: true, using: :btree
|
|
||||||
|
|
||||||
create_table "oauth_access_tokens", force: :cascade do |t|
|
create_table "oauth_access_tokens", force: :cascade do |t|
|
||||||
t.integer "resource_owner_id"
|
t.integer "resource_owner_id"
|
||||||
t.integer "application_id"
|
t.integer "application_id"
|
||||||
|
@ -154,12 +145,11 @@ ActiveRecord::Schema.define(version: 20160401133937) do
|
||||||
t.datetime "revoked_at"
|
t.datetime "revoked_at"
|
||||||
t.datetime "created_at", null: false
|
t.datetime "created_at", null: false
|
||||||
t.string "scopes"
|
t.string "scopes"
|
||||||
|
t.index ["refresh_token"], name: "index_oauth_access_tokens_on_refresh_token", unique: true, using: :btree
|
||||||
|
t.index ["resource_owner_id"], name: "index_oauth_access_tokens_on_resource_owner_id", using: :btree
|
||||||
|
t.index ["token"], name: "index_oauth_access_tokens_on_token", unique: true, using: :btree
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "oauth_access_tokens", ["refresh_token"], name: "index_oauth_access_tokens_on_refresh_token", unique: true, using: :btree
|
|
||||||
add_index "oauth_access_tokens", ["resource_owner_id"], name: "index_oauth_access_tokens_on_resource_owner_id", using: :btree
|
|
||||||
add_index "oauth_access_tokens", ["token"], name: "index_oauth_access_tokens_on_token", unique: true, using: :btree
|
|
||||||
|
|
||||||
create_table "oauth_applications", force: :cascade do |t|
|
create_table "oauth_applications", force: :cascade do |t|
|
||||||
t.string "name", null: false
|
t.string "name", null: false
|
||||||
t.string "uid", null: false
|
t.string "uid", null: false
|
||||||
|
@ -168,10 +158,9 @@ ActiveRecord::Schema.define(version: 20160401133937) do
|
||||||
t.string "scopes", default: "", null: false
|
t.string "scopes", default: "", null: false
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
|
t.index ["uid"], name: "index_oauth_applications_on_uid", unique: true, using: :btree
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "oauth_applications", ["uid"], name: "index_oauth_applications_on_uid", unique: true, using: :btree
|
|
||||||
|
|
||||||
create_table "synapses", force: :cascade do |t|
|
create_table "synapses", force: :cascade do |t|
|
||||||
t.text "desc"
|
t.text "desc"
|
||||||
t.text "category"
|
t.text "category"
|
||||||
|
@ -183,24 +172,22 @@ ActiveRecord::Schema.define(version: 20160401133937) do
|
||||||
t.datetime "created_at", null: false
|
t.datetime "created_at", null: false
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
t.integer "defer_to_map_id"
|
t.integer "defer_to_map_id"
|
||||||
|
t.index ["node1_id", "node1_id"], name: "index_synapses_on_node1_id_and_node1_id", using: :btree
|
||||||
|
t.index ["node1_id"], name: "index_synapses_on_node1_id", using: :btree
|
||||||
|
t.index ["node2_id", "node2_id"], name: "index_synapses_on_node2_id_and_node2_id", using: :btree
|
||||||
|
t.index ["node2_id"], name: "index_synapses_on_node2_id", using: :btree
|
||||||
|
t.index ["user_id"], name: "index_synapses_on_user_id", using: :btree
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "synapses", ["node1_id", "node1_id"], name: "index_synapses_on_node1_id_and_node1_id", using: :btree
|
|
||||||
add_index "synapses", ["node1_id"], name: "index_synapses_on_node1_id", using: :btree
|
|
||||||
add_index "synapses", ["node2_id", "node2_id"], name: "index_synapses_on_node2_id_and_node2_id", using: :btree
|
|
||||||
add_index "synapses", ["node2_id"], name: "index_synapses_on_node2_id", using: :btree
|
|
||||||
add_index "synapses", ["user_id"], name: "index_synapses_on_user_id", using: :btree
|
|
||||||
|
|
||||||
create_table "tokens", force: :cascade do |t|
|
create_table "tokens", force: :cascade do |t|
|
||||||
t.string "token"
|
t.string "token"
|
||||||
t.string "description"
|
t.string "description"
|
||||||
t.integer "user_id"
|
t.integer "user_id"
|
||||||
t.datetime "created_at", null: false
|
t.datetime "created_at", null: false
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
|
t.index ["user_id"], name: "index_tokens_on_user_id", using: :btree
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "tokens", ["user_id"], name: "index_tokens_on_user_id", using: :btree
|
|
||||||
|
|
||||||
create_table "topics", force: :cascade do |t|
|
create_table "topics", force: :cascade do |t|
|
||||||
t.text "name"
|
t.text "name"
|
||||||
t.text "desc"
|
t.text "desc"
|
||||||
|
@ -219,21 +206,19 @@ ActiveRecord::Schema.define(version: 20160401133937) do
|
||||||
t.integer "audio_file_size"
|
t.integer "audio_file_size"
|
||||||
t.datetime "audio_updated_at"
|
t.datetime "audio_updated_at"
|
||||||
t.integer "defer_to_map_id"
|
t.integer "defer_to_map_id"
|
||||||
|
t.index ["metacode_id"], name: "index_topics_on_metacode_id", using: :btree
|
||||||
|
t.index ["user_id"], name: "index_topics_on_user_id", using: :btree
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "topics", ["metacode_id"], name: "index_topics_on_metacode_id", using: :btree
|
|
||||||
add_index "topics", ["user_id"], name: "index_topics_on_user_id", using: :btree
|
|
||||||
|
|
||||||
create_table "user_maps", force: :cascade do |t|
|
create_table "user_maps", force: :cascade do |t|
|
||||||
t.integer "user_id"
|
t.integer "user_id"
|
||||||
t.integer "map_id"
|
t.integer "map_id"
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
|
t.index ["map_id"], name: "index_user_maps_on_map_id", using: :btree
|
||||||
|
t.index ["user_id"], name: "index_user_maps_on_user_id", using: :btree
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "user_maps", ["map_id"], name: "index_user_maps_on_map_id", using: :btree
|
|
||||||
add_index "user_maps", ["user_id"], name: "index_user_maps_on_user_id", using: :btree
|
|
||||||
|
|
||||||
create_table "users", force: :cascade do |t|
|
create_table "users", force: :cascade do |t|
|
||||||
t.string "name"
|
t.string "name"
|
||||||
t.string "email"
|
t.string "email"
|
||||||
|
@ -262,19 +247,17 @@ ActiveRecord::Schema.define(version: 20160401133937) do
|
||||||
t.integer "image_file_size"
|
t.integer "image_file_size"
|
||||||
t.datetime "image_updated_at"
|
t.datetime "image_updated_at"
|
||||||
t.integer "generation"
|
t.integer "generation"
|
||||||
|
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
|
|
||||||
|
|
||||||
create_table "webhooks", force: :cascade do |t|
|
create_table "webhooks", force: :cascade do |t|
|
||||||
t.integer "hookable_id"
|
t.integer "hookable_id"
|
||||||
t.string "hookable_type"
|
t.string "hookable_type"
|
||||||
t.string "kind", null: false
|
t.string "kind", null: false
|
||||||
t.string "uri", null: false
|
t.string "uri", null: false
|
||||||
t.text "event_types", default: [], array: true
|
t.text "event_types", default: [], array: true
|
||||||
|
t.index ["hookable_type", "hookable_id"], name: "index_webhooks_on_hookable_type_and_hookable_id", using: :btree
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "webhooks", ["hookable_type", "hookable_id"], name: "index_webhooks_on_hookable_type_and_hookable_id", using: :btree
|
|
||||||
|
|
||||||
add_foreign_key "tokens", "users"
|
add_foreign_key "tokens", "users"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue