class CreateDaimonNewsAdminPosts < ActiveRecord::Migration
  def change
    create_table :daimon_news_admin_posts do |t|
      t.string :title
      t.text :body
      t.references :daimon_news_admin_site, index: true, foreign_key: true, null: false

      t.timestamps null: false
    end
  end
end

class CreateDaimonNewsAdminPosts < ActiveRecord::Migration
  def change
    create_table :daimon_news_admin_posts do |t|
      t.string :title
      t.text :body
      t.references :daimon_news_admin_site, index: true, foreign_key: true

      t.timestamps null: false
    end
  end
end

Revert "Add NOT NULL constraint"
Revert "Add NOT NULL constraint"

This reverts commit e97085fa502b82c14a2229e67d664b5a683ee78c.
