Use key
as primary key in schema.
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user