mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-05 22:44:22 +08:00
10 lines
245 B
Ruby
10 lines
245 B
Ruby
|
class CreateSettingsTable < ActiveRecord::Migration
|
||
|
def change
|
||
|
create_table :settings do |t|
|
||
|
t.text :type, null: false
|
||
|
t.jsonb :values, null: false, default: '{}'
|
||
|
end
|
||
|
add_index(:settings, :type, unique: true)
|
||
|
end
|
||
|
end
|