mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 05:09:38 +02:00
16 lines
314 B
Ruby
16 lines
314 B
Ruby
|
class CreateSettings < ActiveRecord::Migration[7.2]
|
||
|
def self.up
|
||
|
create_table :settings do |t|
|
||
|
t.string :var, null: false
|
||
|
t.text :value, null: true
|
||
|
t.timestamps
|
||
|
end
|
||
|
|
||
|
add_index :settings, %i[var], unique: true
|
||
|
end
|
||
|
|
||
|
def self.down
|
||
|
drop_table :settings
|
||
|
end
|
||
|
end
|