fork download
  1. # encoding: UTF-8
  2. # This file is auto-generated from the current state of the database. Instead
  3. # of editing this file, please use the migrations feature of Active Record to
  4. # incrementally modify your database, and then regenerate this schema definition.
  5. #
  6. # Note that this schema.rb definition is the authoritative source for your
  7. # database schema. If you need to create the application database on another
  8. # system, you should be using db:schema:load, not running all the migrations
  9. # from scratch. The latter is a flawed and unsustainable approach (the more migrations
  10. # you'll amass, the slower it'll run and the greater likelihood for issues).
  11. #
  12. # It's strongly recommended that you check this file into your version control system.
  13.  
  14. ActiveRecord::Schema.define(version: 20150105123031) do
  15.  
  16. create_table "accounts", force: :cascade do |t|
  17. t.integer "client_id", null: false
  18. t.integer "number", null: false
  19. t.integer "balance", default: 0, null: false
  20. t.datetime "created_at", null: false
  21. t.datetime "updated_at", null: false
  22. end
  23.  
  24. add_index "accounts", ["client_id"], name: "index_accounts_on_client_id"
  25.  
  26. create_table "clients", force: :cascade do |t|
  27. t.string "name"
  28. t.string "surname"
  29. t.string "email"
  30. t.string "phone"
  31. t.datetime "created_at", null: false
  32. t.datetime "updated_at", null: false
  33. end
  34.  
  35. end
  36.  
Runtime error #stdin #stdout #stderr 0.01s 7416KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
prog.rb:14:in `<main>': uninitialized constant ActiveRecord (NameError)