Added newsletter migration

This commit is contained in:
María Checa
2018-02-09 17:48:14 +01:00
parent f5c5293321
commit a22faadc1f

View File

@@ -0,0 +1,13 @@
class CreateNewsletters < ActiveRecord::Migration
def change
create_table :newsletters do |t|
t.string :subject
t.integer :segment_recipient
t.string :from
t.text :body
t.date :sent_at, default: nil
t.timestamps null: false
end
end
end