mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-22 04:25:06 +01:00
13 lines
316 B
Ruby
13 lines
316 B
Ruby
|
class CreateIpBlocks < ActiveRecord::Migration[5.2]
|
||
|
def change
|
||
|
create_table :ip_blocks do |t|
|
||
|
t.inet :ip, null: false, default: '0.0.0.0'
|
||
|
t.integer :severity, null: false, default: 0
|
||
|
t.datetime :expires_at
|
||
|
t.text :comment, null: false, default: ''
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|