rename content_type to time_span_type for archives

This commit is contained in:
Christophe Robillard 2021-04-27 18:54:58 +02:00
parent 9134114c2e
commit dfbe004122
7 changed files with 24 additions and 19 deletions

View file

@ -0,0 +1,5 @@
class RenameContentTypeToToTimeSpanTypeForArchives < ActiveRecord::Migration[6.1]
def change
rename_column :archives, :content_type, :time_span_type
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2021_04_27_120002) do
ActiveRecord::Schema.define(version: 2021_04_27_112642) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -84,7 +84,7 @@ ActiveRecord::Schema.define(version: 2021_04_27_120002) do
create_table "archives", force: :cascade do |t|
t.string "status", null: false
t.date "month"
t.string "content_type", null: false
t.string "time_span_type", null: false
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
end