Class: AddJiveTiles010Migration

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

Class Method Summary collapse

Class Method Details

.downObject



25
26
27
# File 'lib/generators/jive/tile/templates/migration_0.1.0.rb', line 25

def self.down
  drop_table :jive_tiles
end

.upObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/generators/jive/tile/templates/migration_0.1.0.rb', line 2

def self.up
  create_table :jive_tiles do |t|
    t.integer :jive_add_on_id

    t.integer :tile_id
    t.string :code
    t.text :config
    t.string :guid
    t.string :jive_url
    t.string :name
    t.string :parent
    t.string :place_uri
    t.string :tenant_id
    t.string :url

    t.string :remote_id
    t.string :push_url

    t.boolean :uninstalled
    t.timestamps null: false
  end
end