Use key as primary key in schema.

This commit is contained in:
schneems 2016-01-07 17:12:58 -06:00
parent 9219976752
commit 350ae6cdc1

@ -35,7 +35,7 @@ def table_exists?
# Creates a internal metadata table with columns +key+ and +value+
def create_table
unless table_exists?
connection.create_table(table_name, id: false) do |t|
connection.create_table(table_name, primary_key: :key, id: false ) do |t|
t.column :key, :string
t.column :value, :string
t.timestamps