Skip to content

Commit

Permalink
update dummy migration files
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Dec 29, 2019
1 parent 96060d4 commit f7fb713
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddHeaderLogoMetaToLibraryGroup < ActiveRecord::Migration[4.2]
class AddHeaderLogoMetaToLibraryGroup < ActiveRecord::Migration[5.2]
def change
add_column :library_groups, :header_logo_meta, :text
end
Expand Down
12 changes: 12 additions & 0 deletions spec/dummy/db/migrate/20191219122214_create_custom_properties.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class CreateCustomProperties < ActiveRecord::Migration[5.2]
def change
create_table :custom_properties do |t|
t.integer :resource_id, null: false
t.string :resource_type, null: false
t.text :label, null: false
t.text :value

t.timestamps
end
end
end
9 changes: 9 additions & 0 deletions spec/dummy/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,15 @@
t.index ["work_id"], name: "index_creates_on_work_id"
end

create_table "custom_properties", force: :cascade do |t|
t.integer "resource_id", null: false
t.string "resource_type", null: false
t.text "label", null: false
t.text "value"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

create_table "demands", force: :cascade do |t|
t.bigint "user_id"
t.bigint "item_id"
Expand Down

0 comments on commit f7fb713

Please sign in to comment.