Sha256: cfb928d69e45a037081016ab51ed4b0b604674900232a0a5465c6c09a2241f74

Contents?: true

Size: 519 Bytes

Versions: 10

Compression:

Stored size: 519 Bytes

Contents

# frozen_string_literal: true

class CreatePageVersions < ActiveRecord::Migration[5.2]
  def change
    create_table :alchemy_page_versions do |t|
      t.references :page,
                   null: false,
                   index: true,
                   foreign_key: {
                     to_table: :alchemy_pages,
                     on_delete: :cascade,
                   }
      t.datetime :public_on
      t.datetime :public_until
      t.index [:public_on, :public_until]
      t.timestamps
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
alchemy_cms-6.0.0.pre.rc4 db/migrate/20201207131309_create_page_versions.rb
alchemy_cms-6.0.0.pre.rc3 db/migrate/20201207131309_create_page_versions.rb
alchemy_cms-6.0.0.pre.rc2 db/migrate/20201207131309_create_page_versions.rb
alchemy_cms-6.0.0.pre.rc1 db/migrate/20201207131309_create_page_versions.rb
alchemy_cms-6.0.0.pre.b6 db/migrate/20201207131309_create_page_versions.rb
alchemy_cms-6.0.0.pre.b5 db/migrate/20201207131309_create_page_versions.rb
alchemy_cms-6.0.0.pre.b4 db/migrate/20201207131309_create_page_versions.rb
alchemy_cms-6.0.0.b3 db/migrate/20201207131309_create_page_versions.rb
alchemy_cms-6.0.0.b2 db/migrate/20201207131309_create_page_versions.rb
alchemy_cms-6.0.0.b1 db/migrate/20201207131309_create_page_versions.rb