Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
76 lines (64 sloc) 2.82 KB
# 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 to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20091226184754) do
create_table "nodes", :force => true do |t|
t.string "name"
t.string "street"
t.string "zip"
t.string "city"
t.decimal "lat", :precision => 9, :scale => 6
t.decimal "lng", :precision => 9, :scale => 6
t.string "position"
t.text "description"
t.integer "ip"
t.integer "subnet_id"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "user_id", :default => 1
end
add_index "nodes", ["name"], :name => "index_nodes_on_name", :unique => true
create_table "roles", :force => true do |t|
t.string "name"
end
create_table "roles_users", :id => false, :force => true do |t|
t.integer "role_id"
t.integer "user_id"
end
add_index "roles_users", ["role_id"], :name => "index_roles_users_on_role_id"
add_index "roles_users", ["user_id"], :name => "index_roles_users_on_user_id"
create_table "subnets", :force => true do |t|
t.string "name"
t.integer "ip"
t.integer "prefix_length"
t.integer "max_hosts"
t.text "description"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "user_id", :default => 1
end
add_index "subnets", ["name"], :name => "index_subnets_on_name", :unique => true
create_table "users", :force => true do |t|
t.string "login", :limit => 40
t.string "name", :limit => 100, :default => ""
t.string "email", :limit => 100
t.string "crypted_password", :limit => 40
t.string "salt", :limit => 40
t.datetime "created_at"
t.datetime "updated_at"
t.string "remember_token", :limit => 40
t.datetime "remember_token_expires_at"
t.string "activation_code", :limit => 40
t.datetime "activated_at"
t.string "password_reset_code", :limit => 40
t.boolean "enabled", :default => true
end
add_index "users", ["login"], :name => "index_users_on_login", :unique => true
end