Archive: ComponentOwl Rails app, DB backups, go redirect script
This commit is contained in:
15
db/migrate/20101103125852_create_emails.rb
Normal file
15
db/migrate/20101103125852_create_emails.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
class CreateEmails < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :emails do |t|
|
||||
t.column :from, :string
|
||||
t.column :to, :string
|
||||
t.column :last_send_attempt, :integer, :default => 0
|
||||
t.column :mail, :text
|
||||
t.column :created_on, :datetime
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :emails
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user