lib/slosilo/adapters/sequel_adapter/migration.rb in slosilo-0.0.0 vs lib/slosilo/adapters/sequel_adapter/migration.rb in slosilo-0.1.2
- old
+ new
@@ -13,16 +13,13 @@
# Keystore table name. If changing this do it immediately after loading the extension.
attr_accessor :keystore_table
# Create the table for holding keys
def create_keystore_table
- # docs say to not use create_table? in migration;
- # but we really want this to be robust in case there are any previous installs
- # and we can't use table_exists? because it rolls back
- create_table? keystore_table do
+ create_table keystore_table do
String :id, primary_key: true
+ # Note: currently only postgres is supported
bytea :key, null: false
- String :fingerprint, unique: true, null: false
end
end
# Drop the table
def drop_keystore_table