Merge branch 'master' into poll-shifts

This commit is contained in:
Raimond Garcia
2017-09-05 14:45:31 +02:00
committed by GitHub
127 changed files with 2421 additions and 293 deletions

View File

@@ -0,0 +1,14 @@
class CreateDocuments < ActiveRecord::Migration
def change
create_table :documents do |t|
t.string :title
t.attachment :attachment
t.references :user, index: true, foreign_key: true
t.references :documentable, polymorphic: true, index: true
t.timestamps null: false
end
add_index :documents, [:user_id, :documentable_type, :documentable_id], name: "access_documents"
end
end