Class: CreateHeatMaps

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/heatmap_rails/templates/initializer.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
# File 'lib/generators/heatmap_rails/templates/initializer.rb', line 2

def change
  create_table :heat_maps do |t|
    t.string :path
    t.string :click_type
    t.float :offset_x
    t.float :offset_y
    t.text :xpath

    t.timestamps
  end
end