Skip to content

Commit

Permalink
JobIOWrapper migration
Browse files Browse the repository at this point in the history
  • Loading branch information
atz committed Jul 26, 2017
1 parent 197880a commit 13f2da5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
16 changes: 16 additions & 0 deletions db/migrate/20170726203841_create_job_io_wrappers.hyrax.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This migration comes from hyrax (originally 20170621201939)
class CreateJobIoWrappers < ActiveRecord::Migration[5.0]
def change
create_table :job_io_wrappers do |t|
t.references :user
t.references :uploaded_file
t.string :file_set_id
t.string :mime_type
t.string :original_name
t.string :path
t.string :relation

t.timestamps
end
end
end
16 changes: 15 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20170605152346) do
ActiveRecord::Schema.define(version: 20170726203841) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand Down Expand Up @@ -151,6 +151,20 @@
t.datetime "updated_at", null: false
end

create_table "job_io_wrappers", id: :serial, force: :cascade do |t|
t.integer "user_id"
t.integer "uploaded_file_id"
t.string "file_set_id"
t.string "mime_type"
t.string "original_name"
t.string "path"
t.string "relation"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["uploaded_file_id"], name: "index_job_io_wrappers_on_uploaded_file_id"
t.index ["user_id"], name: "index_job_io_wrappers_on_user_id"
end

create_table "local_authorities", id: :serial, force: :cascade do |t|
t.string "name"
end
Expand Down

0 comments on commit 13f2da5

Please sign in to comment.