2013-11-14 10:54:09 +01:00
|
|
|
# encoding: UTF-8
|
2014-08-06 14:47:47 +02:00
|
|
|
# rubocop:disable all
|
2013-11-14 10:54:09 +01:00
|
|
|
# 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
|
|
|
|
# incrementally modify your database, and then regenerate this schema definition.
|
|
|
|
#
|
|
|
|
# Note that this schema.rb definition is the authoritative source for your
|
|
|
|
# database schema. If you need to create the application database on another
|
|
|
|
# system, you should be using db:schema:load, not running all the migrations
|
|
|
|
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
|
|
|
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
|
|
|
#
|
|
|
|
# It's strongly recommended that you check this file into your version control system.
|
|
|
|
|
2014-10-11 16:12:07 +02:00
|
|
|
ActiveRecord::Schema.define(version: 20141011100700) do
|
2014-08-07 22:16:05 +02:00
|
|
|
|
2013-11-14 17:07:48 +01:00
|
|
|
create_table "active_admin_comments", force: true do |t|
|
|
|
|
t.string "namespace"
|
|
|
|
t.text "body"
|
|
|
|
t.string "resource_id", null: false
|
|
|
|
t.string "resource_type", null: false
|
|
|
|
t.integer "author_id"
|
|
|
|
t.string "author_type"
|
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
|
|
|
end
|
|
|
|
|
2014-10-11 16:12:07 +02:00
|
|
|
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
|
2013-11-14 17:07:48 +01:00
|
|
|
|
|
|
|
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"
|
|
|
|
t.datetime "reset_password_sent_at"
|
|
|
|
t.datetime "remember_created_at"
|
|
|
|
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.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
|
|
|
end
|
|
|
|
|
2014-10-11 16:12:07 +02:00
|
|
|
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
|
2013-11-14 10:54:09 +01:00
|
|
|
|
|
|
|
create_table "cities", force: true do |t|
|
2014-06-21 12:33:10 +02:00
|
|
|
t.string "name", default: "", null: false
|
|
|
|
t.string "majname", default: "", null: false
|
2013-11-14 10:54:09 +01:00
|
|
|
t.integer "postalcode"
|
|
|
|
t.integer "inseecode"
|
|
|
|
t.integer "regioncode"
|
2014-06-21 12:33:10 +02:00
|
|
|
t.float "latitude", limit: 24
|
|
|
|
t.float "longitude", limit: 24
|
2013-11-14 10:54:09 +01:00
|
|
|
end
|
|
|
|
|
2014-10-11 16:12:07 +02:00
|
|
|
add_index "cities", ["name"], name: "cities_name", using: :btree
|
2014-08-23 16:59:42 +02:00
|
|
|
|
2013-11-14 10:54:09 +01:00
|
|
|
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
|
2014-10-11 16:12:07 +02:00
|
|
|
t.datetime "decision_time"
|
|
|
|
t.datetime "submission_time"
|
2013-11-14 10:54:09 +01:00
|
|
|
t.string "moderator_mail_id", limit: 32
|
|
|
|
t.string "submitter_mail_id", limit: 32
|
2014-08-23 16:59:42 +02:00
|
|
|
t.text "address"
|
2014-10-11 16:12:07 +02:00
|
|
|
t.float "latitude", limit: 24
|
|
|
|
t.float "longitude", limit: 24
|
|
|
|
t.integer "lock_version", default: 0, null: false
|
2013-11-14 10:54:09 +01:00
|
|
|
end
|
|
|
|
|
2014-10-11 16:12:07 +02:00
|
|
|
add_index "events", ["start_time", "end_time"], name: "events_date", using: :btree
|
2014-08-23 16:59:42 +02:00
|
|
|
|
2013-11-14 10:54:09 +01:00
|
|
|
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
|
|
|
|
end
|
|
|
|
|
|
|
|
create_table "notes", force: true 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
|
|
|
|
end
|
|
|
|
|
2014-04-04 00:51:42 +02:00
|
|
|
create_table "translations", force: true do |t|
|
|
|
|
t.string "locale"
|
|
|
|
t.string "key"
|
|
|
|
t.text "value"
|
|
|
|
t.text "interpolations"
|
|
|
|
t.boolean "is_proc", default: false
|
|
|
|
end
|
|
|
|
|
2013-11-14 10:54:09 +01:00
|
|
|
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
|
2014-08-07 22:16:05 +02:00
|
|
|
t.string "lastname", default: "", null: false
|
2014-08-23 16:59:42 +02:00
|
|
|
t.string "firstname", default: "", null: false
|
2013-11-14 10:54:09 +01:00
|
|
|
end
|
2014-08-07 22:16:05 +02:00
|
|
|
|
2013-11-14 10:54:09 +01:00
|
|
|
end
|