Commit graph

6 commits

Author SHA1 Message Date
Alexis Reigel
14551424c9 add unique indexes to gpg_keys 2017-07-27 15:46:03 +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
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
fbf1fd1a20 add gpg key model 2017-07-27 15:40:40 +02:00