Skip to content

Instantly share code, notes, and snippets.

@rniwa
Created May 26, 2010 01:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rniwa/413942 to your computer and use it in GitHub Desktop.
Save rniwa/413942 to your computer and use it in GitHub Desktop.
# 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 => 20100503185426) do
create_table "sites", :force => true do |t|
t.string "url", :primary_key => true
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "users", :force => true do |t|
t.string "login", :primary_key => true
t.string "email"
t.string "crypted_password", :limit => 40
t.string "salt", :limit => 40
t.datetime "created_at"
t.datetime "updated_at"
t.string "remember_token"
t.datetime "remember_token_expires_at"
t.string "activation_code", :limit => 40
t.datetime "activated_at"
t.string "state", :default => "passive"
t.datetime "deleted_at"
t.string "name_prefix"
t.string "name_first"
t.string "name_middle"
t.string "name_last"
t.date "birthdate"
t.integer "fb_user_id", :ref => nil
t.string "email_hash"
end
create_table "accounts", :force => true do |t|
t.string "username", :primary_key => true
t.string "password"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "user_id"
t.integer "site_id", :primary_key => true
t.string "type"
end
create_table "comments", :force => true do |t|
t.integer "author_id", :ref => 'user'
t.string "author_name"
t.string "author_email"
t.string "title"
t.text "body"
t.datetime "posted_at"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "site_id"
t.string "url"
t.string "signature", :limit => 40, :primary_key => true
t.boolean "has_merit"
end
create_table "friendships", :force => true do |t|
t.integer "user_id", :primary_key => true
t.integer "friend_id", :primary_key => true, :ref => 'user'
t.datetime "created_at"
t.datetime "updated_at"
t.integer "site_id"
end
create_table "profile_items", :force => true do |t|
t.integer "user_id", :primary_key => true
t.integer "site_id", :primary_key => true
t.string "name", :primary_key => true
t.string "data"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "viewerships", :force => true do |t|
t.integer "rating"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "user_id", :primary_key => true
t.integer "comment_id", :primary_key => true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment