Class: CreateMemdashActiveRecordReports
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateMemdashActiveRecordReports
- Defined in:
- lib/generators/memdash/templates/migration.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
9 10 11 |
# File 'lib/generators/memdash/templates/migration.rb', line 9 def self.down drop_table :memdash_reports end |
.up ⇒ Object
2 3 4 5 6 7 |
# File 'lib/generators/memdash/templates/migration.rb', line 2 def self.up create_table :memdash_reports do |table| table.text :stats table.datetime :created_at end end |