metamaps--metamaps/db/migrate/20160312235006_create_webhooks.rb
2016-03-13 11:24:00 +11:00

10 lines
294 B
Ruby

class CreateWebhooks < ActiveRecord::Migration
def change
create_table :webhooks do |t|
t.references :hookable, polymorphic: true, index: true
t.string :kind, null: false
t.string :uri, null: false
t.text :event_types, array: true, default: []
end
end
end