metamaps--metamaps/db/migrate/20160312235006_create_webhooks.rb

11 lines
294 B
Ruby
Raw Permalink Normal View History

2016-03-13 00:24:00 +00:00
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