Use file template to generate new file content

This commit is contained in:
Maximilian Grundke
2016-06-10 13:41:38 +02:00
parent 1cd879bcb6
commit 4f8feb38e1
7 changed files with 16 additions and 2 deletions

View File

@ -0,0 +1,5 @@
class AddFileTemplateToFile < ActiveRecord::Migration
def change
add_reference :files, :file_template
end
end

View File

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20160609185708) do
ActiveRecord::Schema.define(version: 20160610111602) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -140,6 +140,7 @@ ActiveRecord::Schema.define(version: 20160609185708) do
t.string "feedback_message"
t.float "weight"
t.string "path"
t.integer "file_template_id"
end
add_index "files", ["context_id", "context_type"], name: "index_files_on_context_id_and_context_type", using: :btree