Class: CreateChimpactions

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/chimpactions/migration/templates/create_chimpactions.rb

Class Method Summary collapse

Class Method Details

.downObject



13
14
15
# File 'lib/generators/chimpactions/migration/templates/create_chimpactions.rb', line 13

def self.down
  drop_table :chimpactions
end

.upObject



2
3
4
5
6
7
8
9
10
11
# File 'lib/generators/chimpactions/migration/templates/create_chimpactions.rb', line 2

def self.up
  create_table :chimpactions, :force => true do |t|
    t.text :action
    t.text :list
    t.string :whenn
    t.string :is
    t.string :value
    t.timestamps
  end
end