Archive: ComponentOwl Rails app, DB backups, go redirect script
This commit is contained in:
24
db/migrate/20101102185849_create_autoresponders.rb
Normal file
24
db/migrate/20101102185849_create_autoresponders.rb
Normal file
@@ -0,0 +1,24 @@
|
||||
class CreateAutoresponders < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :autoresponders do |t|
|
||||
t.integer :subscription_list_id, :null => false
|
||||
t.string :subject, :null => false
|
||||
t.text :message, :null => false
|
||||
t.integer :delay, :default => 0
|
||||
|
||||
t.timestamps
|
||||
t.datetime :deleted_at
|
||||
end
|
||||
|
||||
create_table :sent_autoresponders do |t|
|
||||
t.integer :autoresponder_id, :null => false
|
||||
t.integer :contact_id, :null => false
|
||||
t.datetime :sent_at
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :autoresponders
|
||||
drop_table :sent_autoresponders
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user