Sha256: 832da3971eeceed61ebc8c795df692cd18e639bb12df1b9573a07fb5ad8dd4ec
Contents?: true
Size: 709 Bytes
Versions: 171
Compression:
Stored size: 709 Bytes
Contents
class CreateYumMetadataFile < ActiveRecord::Migration[5.2] def up create_table :katello_yum_metadata_files do |t| t.string :uuid, null: false t.string :checksum, null: true t.string :name, null: true t.integer :repository_id, null: true t.timestamps end add_foreign_key :katello_yum_metadata_files, :katello_repositories, :column => "repository_id" change_column :katello_yum_metadata_files, :created_at, :datetime, :null => true change_column :katello_yum_metadata_files, :updated_at, :datetime, :null => true end def down remove_foreign_key :katello_yum_metadata_files, :katello_repositories drop_table :katello_yum_metadata_files end end
Version data entries
171 entries across 171 versions & 1 rubygems