In the spirt of "teach me to fish", can someone guide me on how best to add
new entries to the database from some new models I need? I am adding
content view filters that will limit docker tags[1]. Similar models already
exist for rpm packages so I had a good place to start, but I'm struggling
to know what the migrations should be.
Thanks!
[1]
https://github.com/Katello/katello/compare/patternfly-compliance...thomasmckay:docker-cv-filter
Used the other cv filter migrations to try to make mine. I'm not sure how
to get around this, though:
ArgumentError: Index name
'index_katello_repository_dockers_on_docker_manifest_id_and_repository_id'
on table 'katello_repository_dockers' is too long; the limit is 63
characters
···
On Wed, Nov 2, 2016 at 7:40 PM, Tom McKay wrote:
In the spirt of “teach me to fish”, can someone guide me on how best to
add new entries to the database from some new models I need? I am adding
content view filters that will limit docker tags[1]. Similar models already
exist for rpm packages so I had a good place to start, but I’m struggling
to know what the migrations should be.
Thanks!
[1] https://github.com/Katello/katello/compare/patternfly-
compliance…thomasmckay:docker-cv-filter
On this line:
>> + add_index :katello_repository_dockers, [:docker_manifest_id,
:repository_id], :unique => true
Add a :name => "my_new_index_name_thats_shorter_than_63_chars"
···
On Wednesday, November 2, 2016 at 9:56:10 PM UTC-4, Tom McKay wrote:
>
> Used the other cv filter migrations to try to make mine. I'm not sure how
> to get around this, though:
>
> ArgumentError: Index name
> 'index_katello_repository_dockers_on_docker_manifest_id_and_repository_id'
> on table 'katello_repository_dockers' is too long; the limit is 63
> characters
>
> On Wed, Nov 2, 2016 at 7:40 PM, Tom McKay > wrote:
>
>> In the spirt of "teach me to fish", can someone guide me on how best to
>> add new entries to the database from some new models I need? I am adding
>> content view filters that will limit docker tags[1]. Similar models already
>> exist for rpm packages so I had a good place to start, but I'm struggling
>> to know what the migrations should be.
>>
>> Thanks!
>>
>>
>> [1]
>> https://github.com/Katello/katello/compare/patternfly-compliance...thomasmckay:docker-cv-filter
>>
>
>