Enable documents plugin by default
This commit is contained in:
parent
8a9d7a91c9
commit
c3927e4013
4 changed files with 34 additions and 1 deletions
|
|
@ -0,0 +1,15 @@
|
|||
class CreateDocuments < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :documents do |t|
|
||||
t.string :name
|
||||
t.string :mime
|
||||
t.binary :data, limit: 16.megabyte
|
||||
t.integer :created_by_user_id
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :documents
|
||||
end
|
||||
end
|
||||
|
|
@ -76,6 +76,15 @@ ActiveRecord::Schema.define(version: 20171001000000) do
|
|||
|
||||
add_index "deliveries", ["supplier_id"], name: "index_deliveries_on_supplier_id", using: :btree
|
||||
|
||||
create_table "documents", force: :cascade do |t|
|
||||
t.string "name"
|
||||
t.string "mime"
|
||||
t.binary "data"
|
||||
t.integer "created_by_user_id"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "financial_transactions", force: :cascade do |t|
|
||||
t.integer "ordergroup_id", limit: 4, default: 0, null: false
|
||||
t.decimal "amount", precision: 8, scale: 2, default: 0, null: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue