Class: AddJiveAddOns010Migration

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

Class Method Summary collapse

Class Method Details

.downObject



19
20
21
# File 'lib/generators/jive/add_on/templates/migration_0.1.0.rb', line 19

def self.down
	drop_table :jive_add_ons
end

.upObject



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

def self.up
	create_table :jive_add_ons do |t|
		t.string :name
		t.string :tenant_id
		t.string :client_id
		t.string :client_secret
		t.string :jive_signature
		t.string :jive_signature_url
		t.string :jive_url
		t.string :timestamp
		t.boolean :uninstalled
		t.integer :attempt

		t.timestamps null: false
	end
end