2020-01-01 13:55:28 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class CreatePackagesDependencies < ActiveRecord::Migration[5.2]
|
|
|
|
DOWNTIME = false
|
|
|
|
|
2020-05-24 23:13:21 +05:30
|
|
|
# rubocop:disable Migration/PreventStrings
|
2020-01-01 13:55:28 +05:30
|
|
|
def change
|
|
|
|
create_table :packages_dependencies do |t|
|
|
|
|
t.string :name, null: false, limit: 255
|
|
|
|
t.string :version_pattern, null: false, limit: 255
|
|
|
|
end
|
|
|
|
|
|
|
|
add_index :packages_dependencies, [:name, :version_pattern], unique: true
|
|
|
|
end
|
2020-05-24 23:13:21 +05:30
|
|
|
# rubocop:enable Migration/PreventStrings
|
2020-01-01 13:55:28 +05:30
|
|
|
end
|