Compare commits
10 Commits
Author | SHA1 | Date |
---|---|---|
![]() |
63bc26ab16 | 1 year ago |
![]() |
b319b9de93 | 1 year ago |
![]() |
2470b514c2 | 1 year ago |
![]() |
6a9437cad7 | 1 year ago |
![]() |
fa29bc75a6 | 1 year ago |
![]() |
970fdecda7 | 1 year ago |
![]() |
c19eda923e | 1 year ago |
![]() |
7257a2a5a9 | 1 year ago |
![]() |
84a78d82df | 1 year ago |
![]() |
19deb9c398 | 1 year ago |
@ -1,40 +1,37 @@
|
||||
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
||||
#
|
||||
# If you find yourself ignoring temporary files generated by your text editor
|
||||
# or operating system, you probably want to add a global ignore instead:
|
||||
# git config --global core.excludesfile '~/.gitignore_global'
|
||||
|
||||
# Ignore bundler config.
|
||||
/.bundle
|
||||
|
||||
# Ignore the default SQLite database.
|
||||
/db/*.sqlite3
|
||||
/db/*.sqlite3-*
|
||||
|
||||
# Ignore all logfiles and tempfiles.
|
||||
/log/*
|
||||
/tmp/*
|
||||
!/log/.keep
|
||||
!/tmp/.keep
|
||||
|
||||
# Ignore pidfiles, but keep the directory.
|
||||
/tmp/pids/*
|
||||
!/tmp/pids/
|
||||
!/tmp/pids/.keep
|
||||
|
||||
# Ignore uploaded files in development.
|
||||
/storage/*
|
||||
!/storage/.keep
|
||||
|
||||
/public/assets
|
||||
.byebug_history
|
||||
|
||||
# Ignore master key for decrypting credentials and more.
|
||||
/config/master.key
|
||||
|
||||
/public/packs
|
||||
/public/packs-test
|
||||
/node_modules
|
||||
/yarn-error.log
|
||||
yarn-debug.log*
|
||||
.yarn-integrity
|
||||
.bundle
|
||||
.rake_tasks*
|
||||
db/*.sqlite3
|
||||
log
|
||||
node_modules
|
||||
tmp/*
|
||||
!tmp/.keep
|
||||
public/assets
|
||||
public/packs
|
||||
public/system
|
||||
public/uploads
|
||||
supplier_assets/**
|
||||
vendor/bundle
|
||||
|
||||
# ignore database configuration, but SHARE OTHER CONFIG FILES
|
||||
config/database.yml
|
||||
|
||||
# IDEs, Developer tools
|
||||
.idea
|
||||
.loadpath
|
||||
.project
|
||||
.sass-cache
|
||||
.rbenv-version
|
||||
.get-dump.yml
|
||||
.bash_history
|
||||
nbproject/
|
||||
.*.sw?
|
||||
*~
|
||||
|
||||
coverage
|
||||
tags
|
||||
|
||||
# Capistrano etc.
|
||||
Capfile
|
||||
config/deploy
|
||||
config/deploy.rb
|
||||
Gemfile.capistrano*
|
||||
|
@ -1,25 +0,0 @@
|
||||
# SQLite. Versions 3.8.0 and up are supported.
|
||||
# gem install sqlite3
|
||||
#
|
||||
# Ensure the SQLite 3 gem is defined in your Gemfile
|
||||
# gem 'sqlite3'
|
||||
#
|
||||
default: &default
|
||||
adapter: sqlite3
|
||||
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
||||
timeout: 5000
|
||||
|
||||
development:
|
||||
<<: *default
|
||||
database: db/development.sqlite3
|
||||
|
||||
# Warning: The database defined as "test" will be erased and
|
||||
# re-generated from your development database when you run "rake".
|
||||
# Do not set this db to the same as development or production.
|
||||
test:
|
||||
<<: *default
|
||||
database: db/test.sqlite3
|
||||
|
||||
production:
|
||||
<<: *default
|
||||
database: db/production.sqlite3
|
@ -0,0 +1,9 @@
|
||||
development:
|
||||
adapter: mysql2
|
||||
encoding: utf8
|
||||
reconnect: false
|
||||
database: development
|
||||
pool: 5
|
||||
username: root
|
||||
password: secret
|
||||
host: mysql
|
@ -0,0 +1,5 @@
|
||||
class IndexUsersByUniqueEmail < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_index :users, :email, unique: true
|
||||
end
|
||||
end
|
@ -1,85 +1,82 @@
|
||||
# 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).
|
||||
# This file is the source Rails uses to define your schema when running `bin/rails
|
||||
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
||||
# be faster and is potentially less error prone than running all of your
|
||||
# migrations from scratch. Old migrations may fail to apply correctly if those
|
||||
# migrations use external dependencies or application code.
|
||||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20190811115732) do
|
||||
ActiveRecord::Schema.define(version: 2021_12_19_074758) do
|
||||
|
||||
create_table "articles", :force => true do |t|
|
||||
t.string "name", :null => false
|
||||
t.integer "supplier_id", :null => false
|
||||
t.string "number"
|
||||
t.string "note"
|
||||
t.string "manufacturer"
|
||||
t.string "origin"
|
||||
t.string "unit"
|
||||
t.decimal "price", :precision => 8, :scale => 2, :default => 0.0, :null => false
|
||||
t.decimal "tax", :precision => 3, :scale => 1, :default => 7.0, :null => false
|
||||
t.decimal "deposit", :precision => 8, :scale => 2, :default => 0.0, :null => false
|
||||
t.decimal "unit_quantity", :precision => 4, :scale => 1, :default => 1.0, :null => false
|
||||
t.decimal "scale_quantity", :precision => 4, :scale => 2
|
||||
t.decimal "scale_price", :precision => 8, :scale => 2
|
||||
create_table "articles", charset: "utf8", force: :cascade do |t|
|
||||
t.string "name", null: false
|
||||
t.integer "supplier_id", null: false
|
||||
t.string "number"
|
||||
t.string "note"
|
||||
t.string "manufacturer"
|
||||
t.string "origin"
|
||||
t.string "unit"
|
||||
t.decimal "price", precision: 8, scale: 2, default: "0.0", null: false
|
||||
t.decimal "tax", precision: 3, scale: 1, default: "7.0", null: false
|
||||
t.decimal "deposit", precision: 8, scale: 2, default: "0.0", null: false
|
||||
t.decimal "unit_quantity", precision: 4, scale: 1, default: "1.0", null: false
|
||||
t.decimal "scale_quantity", precision: 4, scale: 2
|
||||
t.decimal "scale_price", precision: 8, scale: 2
|
||||
t.datetime "created_on"
|
||||
t.datetime "updated_on"
|
||||
t.string "category"
|
||||
t.string "category"
|
||||
t.index ["name"], name: "index_articles_on_name"
|
||||
t.index ["number", "supplier_id"], name: "index_articles_on_number_and_supplier_id", unique: true
|
||||
end
|
||||
|
||||
add_index "articles", ["name"], :name => "index_articles_on_name"
|
||||
add_index "articles", ["number", "supplier_id"], :name => "index_articles_on_number_and_supplier_id", :unique => true
|
||||
|
||||
create_table "suppliers", :force => true do |t|
|
||||
t.string "name", :null => false
|
||||
t.string "address", :null => false
|
||||
t.string "phone", :null => false
|
||||
t.string "phone2"
|
||||
t.string "fax"
|
||||
t.string "email"
|
||||
t.string "url"
|
||||
t.string "delivery_days"
|
||||
t.string "note"
|
||||
create_table "suppliers", charset: "utf8", force: :cascade do |t|
|
||||
t.string "name", null: false
|
||||
t.string "address", null: false
|
||||
t.string "phone", null: false
|
||||
t.string "phone2"
|
||||
t.string "fax"
|
||||
t.string "email"
|
||||
t.string "url"
|
||||
t.string "delivery_days"
|
||||
t.string "note"
|
||||
t.datetime "created_on"
|
||||
t.datetime "updated_on"
|
||||
t.boolean "ftp_sync", :default => false
|
||||
t.string "ftp_host"
|
||||
t.string "ftp_user"
|
||||
t.string "ftp_password"
|
||||
t.string "ftp_type", :default => "bnn", :null => false
|
||||
t.string "ftp_regexp", :default => "^([.]/)?PL"
|
||||
t.boolean "mail_sync"
|
||||
t.string "mail_from"
|
||||
t.string "mail_subject"
|
||||
t.string "mail_type"
|
||||
t.string "salt", :null => false
|
||||
t.boolean "ftp_sync", default: false
|
||||
t.string "ftp_host"
|
||||
t.string "ftp_user"
|
||||
t.string "ftp_password"
|
||||
t.string "ftp_type", default: "bnn", null: false
|
||||
t.string "ftp_regexp", default: "^([.]/)?PL"
|
||||
t.boolean "mail_sync"
|
||||
t.string "mail_from"
|
||||
t.string "mail_subject"
|
||||
t.string "mail_type"
|
||||
t.string "salt", null: false
|
||||
t.index ["name"], name: "index_suppliers_on_name", unique: true
|
||||
end
|
||||
|
||||
add_index "suppliers", ["name"], :name => "index_suppliers_on_name", :unique => true
|
||||
|
||||
create_table "user_accesses", :force => true do |t|
|
||||
t.integer "user_id"
|
||||
t.integer "supplier_id"
|
||||
create_table "user_accesses", charset: "utf8", force: :cascade do |t|
|
||||
t.integer "user_id"
|
||||
t.integer "supplier_id"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.index ["supplier_id"], name: "index_user_accesses_on_supplier_id"
|
||||
t.index ["user_id", "supplier_id"], name: "index_user_accesses_on_user_id_and_supplier_id"
|
||||
t.index ["user_id"], name: "index_user_accesses_on_user_id"
|
||||
end
|
||||
|
||||
add_index "user_accesses", ["supplier_id"], :name => "index_user_accesses_on_supplier_id"
|
||||
add_index "user_accesses", ["user_id", "supplier_id"], :name => "index_user_accesses_on_user_id_and_supplier_id"
|
||||
add_index "user_accesses", ["user_id"], :name => "index_user_accesses_on_user_id"
|
||||
|
||||
create_table "users", :force => true do |t|
|
||||
t.string "email"
|
||||
t.string "password_hash"
|
||||
t.string "password_salt"
|
||||
create_table "users", charset: "utf8", force: :cascade do |t|
|
||||
t.string "email"
|
||||
t.string "password_hash"
|
||||
t.string "password_salt"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.boolean "admin", :default => false
|
||||
t.boolean "admin", default: false
|
||||
t.index ["email"], name: "index_users_on_email", unique: true
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue