Lots of updates
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class AddPoliciesEvaluatedAtToNetworkRanges < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
add_column :network_ranges, :policies_evaluated_at, :datetime
|
||||
add_index :network_ranges, :policies_evaluated_at
|
||||
end
|
||||
end
|
||||
11
db/migrate/20251111053159_create_settings.rb
Normal file
11
db/migrate/20251111053159_create_settings.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreateSettings < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
create_table :settings do |t|
|
||||
t.string :key
|
||||
t.string :value
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
add_index :settings, :key, unique: true
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
class ConvertAdditionalDataToNetworkData < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
add_column :network_ranges, :network_data, :jsonb, default: {}
|
||||
add_index :network_ranges, :network_data, using: :gin
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user