Class: AddJiveWebhooks010Migration

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/jive/webhook/templates/migration_0.1.0.rb

Class Method Summary collapse

Class Method Details

.downObject



17
18
19
# File 'lib/generators/jive/webhook/templates/migration_0.1.0.rb', line 17

def self.down
  drop_table :jive_webhooks
end

.upObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/generators/jive/webhook/templates/migration_0.1.0.rb', line 2

def self.up
  create_table :jive_webhooks do |t|
    t.integer :jive_add_on_id
    t.integer :jive_oauth_token_id

    t.integer :webhook_id

    t.string :events
    t.string :object
    t.string :callback

    t.timestamps null: false
  end
end