Enable documents plugin by default

This commit is contained in:
Patrick Gansterer 2017-10-11 10:18:26 +02:00
parent 8a9d7a91c9
commit c3927e4013
4 changed files with 34 additions and 1 deletions

View file

@ -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