|
|
|
@ -12,44 +12,44 @@
|
|
|
|
|
# |
|
|
|
|
# It's strongly recommended that you check this file into your version control system. |
|
|
|
|
|
|
|
|
|
ActiveRecord::Schema.define(version: 20141011100700) do |
|
|
|
|
ActiveRecord::Schema.define(version: 20150215121248) do |
|
|
|
|
|
|
|
|
|
create_table "active_admin_comments", force: true do |t| |
|
|
|
|
t.string "namespace" |
|
|
|
|
create_table "active_admin_comments", force: :cascade do |t| |
|
|
|
|
t.string "namespace", limit: 255 |
|
|
|
|
t.text "body" |
|
|
|
|
t.string "resource_id", null: false |
|
|
|
|
t.string "resource_type", null: false |
|
|
|
|
t.string "resource_id", limit: 255, null: false |
|
|
|
|
t.string "resource_type", limit: 255, null: false |
|
|
|
|
t.integer "author_id" |
|
|
|
|
t.string "author_type" |
|
|
|
|
t.string "author_type", limit: 255 |
|
|
|
|
t.datetime "created_at" |
|
|
|
|
t.datetime "updated_at" |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
add_index "active_admin_comments", ["author_type", "author_id"], name: "index_active_admin_comments_on_author_type_and_author_id", using: :btree |
|
|
|
|
add_index "active_admin_comments", ["namespace"], name: "index_active_admin_comments_on_namespace", using: :btree |
|
|
|
|
add_index "active_admin_comments", ["resource_type", "resource_id"], name: "index_active_admin_comments_on_resource_type_and_resource_id", using: :btree |
|
|
|
|
add_index "active_admin_comments", ["author_type", "author_id"], name: "index_active_admin_comments_on_author_type_and_author_id" |
|
|
|
|
add_index "active_admin_comments", ["namespace"], name: "index_active_admin_comments_on_namespace" |
|
|
|
|
add_index "active_admin_comments", ["resource_type", "resource_id"], name: "index_active_admin_comments_on_resource_type_and_resource_id" |
|
|
|
|
|
|
|
|
|
create_table "admin_users", force: true do |t| |
|
|
|
|
t.string "email", default: "", null: false |
|
|
|
|
t.string "encrypted_password", default: "", null: false |
|
|
|
|
t.string "reset_password_token" |
|
|
|
|
create_table "admin_users", force: :cascade do |t| |
|
|
|
|
t.string "email", limit: 255, default: "", null: false |
|
|
|
|
t.string "encrypted_password", limit: 255, default: "", null: false |
|
|
|
|
t.string "reset_password_token", limit: 255 |
|
|
|
|
t.datetime "reset_password_sent_at" |
|
|
|
|
t.datetime "remember_created_at" |
|
|
|
|
t.integer "sign_in_count", default: 0, null: false |
|
|
|
|
t.integer "sign_in_count", default: 0, null: false |
|
|
|
|
t.datetime "current_sign_in_at" |
|
|
|
|
t.datetime "last_sign_in_at" |
|
|
|
|
t.string "current_sign_in_ip" |
|
|
|
|
t.string "last_sign_in_ip" |
|
|
|
|
t.string "current_sign_in_ip", limit: 255 |
|
|
|
|
t.string "last_sign_in_ip", limit: 255 |
|
|
|
|
t.datetime "created_at" |
|
|
|
|
t.datetime "updated_at" |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
add_index "admin_users", ["email"], name: "index_admin_users_on_email", unique: true, using: :btree |
|
|
|
|
add_index "admin_users", ["reset_password_token"], name: "index_admin_users_on_reset_password_token", unique: true, using: :btree |
|
|
|
|
add_index "admin_users", ["email"], name: "index_admin_users_on_email", unique: true |
|
|
|
|
add_index "admin_users", ["reset_password_token"], name: "index_admin_users_on_reset_password_token", unique: true |
|
|
|
|
|
|
|
|
|
create_table "cities", force: true do |t| |
|
|
|
|
t.string "name", default: "", null: false |
|
|
|
|
t.string "majname", default: "", null: false |
|
|
|
|
create_table "cities", force: :cascade do |t| |
|
|
|
|
t.string "name", limit: 255, default: "", null: false |
|
|
|
|
t.string "majname", limit: 255, default: "", null: false |
|
|
|
|
t.integer "postalcode" |
|
|
|
|
t.integer "inseecode" |
|
|
|
|
t.integer "regioncode" |
|
|
|
@ -57,67 +57,87 @@ ActiveRecord::Schema.define(version: 20141011100700) do
|
|
|
|
|
t.float "longitude", limit: 24 |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
add_index "cities", ["name"], name: "cities_name", using: :btree |
|
|
|
|
|
|
|
|
|
create_table "events", force: true do |t| |
|
|
|
|
t.string "title", default: "", null: false |
|
|
|
|
t.text "description", null: false |
|
|
|
|
t.datetime "start_time", null: false |
|
|
|
|
t.datetime "end_time", null: false |
|
|
|
|
t.string "city", default: "", null: false |
|
|
|
|
t.integer "region", default: 0, null: false |
|
|
|
|
t.integer "locality", default: 0, null: false |
|
|
|
|
t.string "url", default: "", null: false |
|
|
|
|
t.string "contact", default: "", null: false |
|
|
|
|
t.string "submitter", default: "", null: false |
|
|
|
|
t.integer "moderated", default: 0, null: false |
|
|
|
|
t.string "tags", default: "", null: false |
|
|
|
|
t.string "secret", default: "", null: false |
|
|
|
|
t.datetime "decision_time" |
|
|
|
|
t.datetime "submission_time" |
|
|
|
|
add_index "cities", ["name"], name: "cities_name" |
|
|
|
|
|
|
|
|
|
create_table "events", force: :cascade do |t| |
|
|
|
|
t.string "title", limit: 255, default: "", null: false |
|
|
|
|
t.text "description", null: false |
|
|
|
|
t.datetime "start_time", null: false |
|
|
|
|
t.datetime "end_time", null: false |
|
|
|
|
t.string "city", limit: 255, default: "", null: false |
|
|
|
|
t.integer "region_id", default: 0, null: false |
|
|
|
|
t.integer "locality", default: 0, null: false |
|
|
|
|
t.string "url", limit: 255, default: "", null: false |
|
|
|
|
t.string "contact", limit: 255, default: "", null: false |
|
|
|
|
t.string "submitter", limit: 255, default: "", null: false |
|
|
|
|
t.integer "moderated", default: 0, null: false |
|
|
|
|
t.string "tags", limit: 255, default: "", null: false |
|
|
|
|
t.string "secret", limit: 255, default: "", null: false |
|
|
|
|
t.datetime "decision_time", null: false |
|
|
|
|
t.datetime "submission_time", null: false |
|
|
|
|
t.string "moderator_mail_id", limit: 32 |
|
|
|
|
t.string "submitter_mail_id", limit: 32 |
|
|
|
|
t.text "address" |
|
|
|
|
t.float "latitude", limit: 24 |
|
|
|
|
t.float "longitude", limit: 24 |
|
|
|
|
t.integer "lock_version", default: 0, null: false |
|
|
|
|
t.float "latitude" |
|
|
|
|
t.float "longitude" |
|
|
|
|
t.integer "lock_version", default: 0, null: false |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
add_index "events", ["start_time", "end_time"], name: "events_date", using: :btree |
|
|
|
|
add_index "events", ["start_time", "end_time"], name: "events_date" |
|
|
|
|
|
|
|
|
|
create_table "lugs", force: true do |t| |
|
|
|
|
t.integer "region", default: 0, null: false |
|
|
|
|
t.integer "department", default: 0, null: false |
|
|
|
|
t.string "name", default: "", null: false |
|
|
|
|
t.string "url", default: "", null: false |
|
|
|
|
t.string "city", default: "", null: false |
|
|
|
|
create_table "lugs", force: :cascade do |t| |
|
|
|
|
t.integer "region_id", default: 0, null: false |
|
|
|
|
t.integer "department", default: 0, null: false |
|
|
|
|
t.string "name", limit: 255, default: "", null: false |
|
|
|
|
t.string "url", limit: 255, default: "", null: false |
|
|
|
|
t.string "city", limit: 255, default: "", null: false |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
create_table "notes", force: true do |t| |
|
|
|
|
create_table "notes", force: :cascade do |t| |
|
|
|
|
t.text "contents", null: false |
|
|
|
|
t.datetime "date", null: false |
|
|
|
|
t.integer "event_id" |
|
|
|
|
t.integer "author_id" |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
create_table "regions", force: true do |t| |
|
|
|
|
t.string "name", default: "", null: false |
|
|
|
|
create_table "regions", force: :cascade do |t| |
|
|
|
|
t.string "name", limit: 255, default: "", null: false |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
create_table "taggings", force: :cascade do |t| |
|
|
|
|
t.integer "tag_id" |
|
|
|
|
t.integer "taggable_id" |
|
|
|
|
t.string "taggable_type", limit: 255 |
|
|
|
|
t.integer "tagger_id" |
|
|
|
|
t.string "tagger_type", limit: 255 |
|
|
|
|
t.string "context", limit: 128 |
|
|
|
|
t.datetime "created_at" |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
add_index "taggings", ["tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type"], name: "taggings_idx", unique: true |
|
|
|
|
add_index "taggings", ["taggable_id", "taggable_type", "context"], name: "index_taggings_on_taggable_id_and_taggable_type_and_context" |
|
|
|
|
|
|
|
|
|
create_table "tags", force: :cascade do |t| |
|
|
|
|
t.string "name", limit: 255 |
|
|
|
|
t.integer "taggings_count", default: 0 |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
create_table "translations", force: true do |t| |
|
|
|
|
t.string "locale" |
|
|
|
|
t.string "key" |
|
|
|
|
add_index "tags", ["name"], name: "index_tags_on_name", unique: true |
|
|
|
|
|
|
|
|
|
create_table "translations", force: :cascade do |t| |
|
|
|
|
t.string "locale", limit: 255 |
|
|
|
|
t.string "key", limit: 255 |
|
|
|
|
t.text "value" |
|
|
|
|
t.text "interpolations" |
|
|
|
|
t.boolean "is_proc", default: false |
|
|
|
|
t.boolean "is_proc", default: false |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
create_table "users", force: true do |t| |
|
|
|
|
t.string "login", default: "", null: false |
|
|
|
|
t.string "password", default: "", null: false |
|
|
|
|
t.string "email", default: "", null: false |
|
|
|
|
t.string "lastname", default: "", null: false |
|
|
|
|
t.string "firstname", default: "", null: false |
|
|
|
|
create_table "users", force: :cascade do |t| |
|
|
|
|
t.string "login", limit: 255, default: "", null: false |
|
|
|
|
t.string "password", limit: 255, default: "", null: false |
|
|
|
|
t.string "email", limit: 255, default: "", null: false |
|
|
|
|
t.string "lastname", limit: 255, default: "", null: false |
|
|
|
|
t.string "firstname", limit: 255, default: "", null: false |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
end |
|
|
|
|