George B. wrote:
On Jun 19, 2008, at 10:43 AM, Scott K. wrote:
database.
I thought i was doing full backups with mysql every night but it
appears
i forgot to select the schema.
What’s in db/schema.rb?
This file is auto-generated from the current state of the database.
Instead of editing this file,
please use the migrations feature of ActiveRecord 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 => 15) do
create_table “articles”, :force => true do |t|
t.string “title”
t.binary “body”
t.datetime “created_at”
t.datetime “updated_at”
end
create_table “attributes”, :force => true do |t|
t.string “name”
t.datetime “created_at”
t.datetime “updated_at”
end
create_table “comments”, :force => true do |t|
t.string “title”
t.string “body”
t.string “username”
t.datetime “created_at”
t.datetime “updated_at”
end
create_table “compound_materials”, :force => true do |t|
t.integer “compound_id”
t.integer “item_id”
t.datetime “created_at”
t.datetime “updated_at”
end
create_table “compound_types”, :force => true do |t|
t.string “name”
t.datetime “created_at”
t.datetime “updated_at”
end
create_table “compounds”, :force => true do |t|
t.integer “item_id”
t.integer “compound_type_id”
t.datetime “created_at”
t.datetime “updated_at”
end
create_table “item_types”, :force => true do |t|
t.string “name”
t.datetime “created_at”
t.datetime “updated_at”
end
create_table “items”, :force => true do |t|
t.integer “item_type_id”
t.integer “attribute_id”
t.integer “attribute_secondary_id”, :default => 0, :null => false
t.integer “wear_id”
t.integer “weapon_type_id”
t.string “image_name”
t.string “name”
t.string “description”
t.integer “rank”
t.integer “level”
t.string “manufacturable”
t.string “hp”
t.string “sp”
t.string “maxhp”
t.string “maxsp”
t.string “atk”
t.string “def”
t.string “mat”
t.string “mdf”
t.string “spd”
t.datetime “created_at”
t.datetime “updated_at”
end
create_table “manufacture_materials”, :force => true do |t|
t.integer “manufacture_id”
t.integer “item_id”
t.integer “required_num”
t.datetime “created_at”
t.datetime “updated_at”
end
create_table “manufactures”, :force => true do |t|
t.integer “item_id”
t.integer “tool_id”
t.integer “make_num”
t.integer “make_time”
t.datetime “created_at”
t.datetime “updated_at”
end
create_table “tools”, :force => true do |t|
t.integer “item_id”
t.integer “parent_id”
t.datetime “created_at”
t.datetime “updated_at”
end
create_table “users”, :force => true do |t|
t.string “login”
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”
end
create_table “weapon_types”, :force => true do |t|
t.string “name”
t.datetime “created_at”
t.datetime “updated_at”
end
create_table “wears”, :force => true do |t|
t.string “name”
t.datetime “created_at”
t.datetime “updated_at”
end
end