Skip to content

Commit

Permalink
add migrations, update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
fwolfst committed Jan 9, 2020
1 parent 9c81389 commit 96513a7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
5 changes: 0 additions & 5 deletions db/migrate/20190925203128_add_order_to_section.rb

This file was deleted.

5 changes: 5 additions & 0 deletions db/migrate/20190925203128_add_position_to_section.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddPositionToSection < ActiveRecord::Migration[6.0]
def change
add_column :sections, :position, :decimal
end
end
5 changes: 5 additions & 0 deletions db/migrate/20191001065655_add_kind_to_section.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddKindToSection < ActiveRecord::Migration[6.0]
def change
add_column :sections, :kind, :string, default: 'full'
end
end
5 changes: 3 additions & 2 deletions 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: 2019_09_25_203128) do
ActiveRecord::Schema.define(version: 2019_10_01_065655) do

create_table "active_storage_attachments", force: :cascade do |t|
t.string "name", null: false
Expand Down Expand Up @@ -46,7 +46,8 @@
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.integer "newsletter_id", null: false
t.decimal "order"
t.decimal "position"
t.string "kind", default: "full"
t.index ["newsletter_id"], name: "index_sections_on_newsletter_id"
end

Expand Down

0 comments on commit 96513a7

Please sign in to comment.