16 lines
342 B
Ruby
16 lines
342 B
Ruby
class CreateSettingsRateLimits < ActiveRecord::Migration[6.1]
|
|
def self.up
|
|
create_table :settings_rate_limits do |t|
|
|
t.string :var, null: false
|
|
t.text :value, null: true
|
|
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :settings_rate_limits, :var, unique: true
|
|
end
|
|
|
|
def self.down
|
|
drop_table :settings_rate_limits
|
|
end
|
|
end
|