# encoding: UTF-8 # 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 => 20121205185353) do create_table "invoice_bar_accounts", :force => true do |t| t.string "name", :null => false t.integer "user_id", :null => false t.string "bank_account_number" t.string "iban" t.string "swift" t.integer "amount", :default => 0, :null => false t.integer "currency_id", :default => 1, :null => false t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end add_index "invoice_bar_accounts", ["name"], :name => "index_invoice_bar_accounts_on_name" create_table "invoice_bar_addresses", :force => true do |t| t.string "street", :null => false t.string "street_number", :null => false t.string "city", :null => false t.string "city_part" t.string "postcode", :null => false t.string "extra_address_line" t.integer "addressable_id", :null => false t.string "addressable_type", :null => false t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end create_table "invoice_bar_contacts", :force => true do |t| t.string "name", :null => false t.string "email" t.string "phone" t.string "web" t.string "bank_account" t.integer "ic" t.string "dic" t.integer "user_id", :null => false t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end add_index "invoice_bar_contacts", ["ic"], :name => "index_invoice_bar_contacts_on_ic" add_index "invoice_bar_contacts", ["name"], :name => "index_invoice_bar_contacts_on_name" create_table "invoice_bar_currencies", :force => true do |t| t.string "name", :null => false t.string "symbol", :null => false t.integer "priority", :default => 1, :null => false end create_table "invoice_bar_invoice_templates", :force => true do |t| t.string "name", :null => false t.date "issue_date" t.date "due_date" t.string "contact_name" t.integer "contact_ic" t.string "contact_dic" t.integer "user_id" t.integer "payment_identification_number" t.integer "account_id" t.integer "amount" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end add_index "invoice_bar_invoice_templates", ["name"], :name => "index_invoice_bar_invoice_templates_on_name" create_table "invoice_bar_invoices", :force => true do |t| t.string "number", :null => false t.date "issue_date", :null => false t.date "due_date", :null => false t.string "contact_name", :null => false t.integer "contact_ic" t.string "contact_dic" t.integer "user_id", :null => false t.integer "payment_identification_number" t.integer "account_id", :null => false t.integer "amount", :null => false t.boolean "sent", :default => false, :null => false t.boolean "paid", :default => false, :null => false t.boolean "issuer", :default => true, :null => false t.integer "receipt_id" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end add_index "invoice_bar_invoices", ["contact_ic"], :name => "index_invoice_bar_invoices_on_contact_ic" add_index "invoice_bar_invoices", ["contact_name"], :name => "index_invoice_bar_invoices_on_contact_name" add_index "invoice_bar_invoices", ["number"], :name => "index_invoice_bar_invoices_on_number" add_index "invoice_bar_invoices", ["payment_identification_number"], :name => "index_invoice_bar_invoices_on_payment_identification_number" create_table "invoice_bar_items", :force => true do |t| t.string "name", :null => false t.integer "price", :null => false t.string "unit" t.integer "number" t.integer "amount", :null => false t.integer "itemable_id", :null => false t.string "itemable_type", :null => false t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end add_index "invoice_bar_items", ["name"], :name => "index_invoice_bar_items_on_name" create_table "invoice_bar_receipt_templates", :force => true do |t| t.string "name", :null => false t.date "issue_date" t.string "contact_name" t.integer "contact_ic" t.string "contact_dic" t.integer "user_id" t.integer "account_id" t.integer "amount" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end add_index "invoice_bar_receipt_templates", ["name"], :name => "index_invoice_bar_receipt_templates_on_name" create_table "invoice_bar_receipts", :force => true do |t| t.string "number", :null => false t.date "issue_date", :null => false t.string "contact_name", :null => false t.integer "contact_ic" t.string "contact_dic" t.integer "user_id", :null => false t.integer "account_id", :null => false t.integer "amount", :null => false t.boolean "issuer", :default => true, :null => false t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end add_index "invoice_bar_receipts", ["contact_ic"], :name => "index_invoice_bar_receipts_on_contact_ic" add_index "invoice_bar_receipts", ["contact_name"], :name => "index_invoice_bar_receipts_on_contact_name" add_index "invoice_bar_receipts", ["number"], :name => "index_invoice_bar_receipts_on_number" create_table "invoice_bar_users", :force => true do |t| t.string "email", :null => false t.string "crypted_password" t.string "salt" t.string "remember_me_token" t.datetime "remember_me_token_expires_at" t.string "reset_password_token" t.datetime "reset_password_token_expires_at" t.datetime "reset_password_email_sent_at" t.string "name", :null => false t.string "phone" t.string "web" t.integer "ic", :null => false t.boolean "administrator" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end add_index "invoice_bar_users", ["remember_me_token"], :name => "index_invoice_bar_users_on_remember_me_token" add_index "invoice_bar_users", ["reset_password_token"], :name => "index_invoice_bar_users_on_reset_password_token" end