Commit graph

7 commits

Author SHA1 Message Date
Alexis Reigel
4e53131f7d add unique index for gpg_signatures#commit_sha 2017-07-27 15:46:04 +02:00
Alexis Reigel
c4c44c6a1b length constrain on the index, not on the column
we actually don't need a limit on the column itself for MySQL to work.
we need to set a length on the index.
2017-07-27 15:46:03 +02:00
Alexis Reigel
57ccff8ea4 use db's on_delete instead of has_many :dependent 2017-07-27 15:46:03 +02:00
Alexis Reigel
895efdfbcf use text instead of string for db columns 2017-07-27 15:46:03 +02:00
Alexis Reigel
8e0c33ed13 use ShaAttribute for gpg table columns 2017-07-27 15:46:03 +02:00
Alexis Reigel
8c8a9e6d3f merge migrations to 1 single create per table
also:

* reorder table columns
* no need for `add_concurrent_index`
* no need for explicit index removal on `#down`
2017-07-27 15:46:03 +02:00
Alexis Reigel
8236b12dff gpg signature model for gpg verification caching 2017-07-27 15:42:53 +02:00