Class: CreateMalletTables

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

Class Method Summary collapse

Class Method Details

.changeObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/generators/active_record/templates/migration.rb', line 2

def self.change

  create_table "mallet_mails", :force => true do |t|
    t.string "definition"
    t.string "malletable_type"
    t.string "malletable_id"
    t.string "workflow_state"
    t.string "message_id"
    t.text "data"
    t.float "wait_time"
    t.date "send_date"
    t.timestamps
  end

  add_index "mallet_mails", ["definition"], :name => "index_mallet_mails_on_definition"
  add_index "mallet_mails", ["malletable_type", "malletable_id"], :name => "index_mallet_mails_on_malletable_type_and_malletable_id"
  add_index "mallet_mails", ["send_date"], :name => "index_mallet_mails_on_send_date"
 
end