Class: CreateMancoraStats

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/mancora/install/templates/create_mancora_stats.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



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

def change
  create_table :mancora_stats do |t|
    t.string :name
    t.string :intervals
    t.integer :count
    t.datetime :start
    t.datetime :end

    t.timestamps
  end
end