Add published_at to procedure_revisions
This commit is contained in:
parent
667781ab1e
commit
306e5d228d
3 changed files with 8 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
# Table name: procedure_revisions
|
||||
#
|
||||
# id :bigint not null, primary key
|
||||
# published_at :datetime
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# procedure_id :bigint not null
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
class AddPublishedAtToProcedureRevisions < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :procedure_revisions, :published_at, :datetime
|
||||
end
|
||||
end
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2021_05_06_135603) do
|
||||
ActiveRecord::Schema.define(version: 2021_05_07_135603) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -533,6 +533,7 @@ ActiveRecord::Schema.define(version: 2021_05_06_135603) do
|
|||
t.bigint "procedure_id", null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.datetime "published_at"
|
||||
t.index ["procedure_id"], name: "index_procedure_revisions_on_procedure_id"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue