Added newsletter migration
This commit is contained in:
13
db/migrate/20180205170054_create_newsletters.rb
Normal file
13
db/migrate/20180205170054_create_newsletters.rb
Normal 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
|
||||
Reference in New Issue
Block a user