16 lines
338 B
Ruby
16 lines
338 B
Ruby
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
|