Sha256: 9f339379f0f5fed08ac84708c829faf5d4f3397483c6b73f80afa67ba2e51d42

Contents?: true

Size: 276 Bytes

Versions: 10

Compression:

Stored size: 276 Bytes

Contents

# frozen_string_literal: true

class DemandBlogIdOnContents < ActiveRecord::Migration[4.2]
  set_role "blog_content"

  def up
    change_column :contents, :blog_id, :integer, null: false
  end

  def down
    change_column :contents, :blog_id, :integer, null: true
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
HornsAndHooves-publify_core-10.5.0 db/migrate/20160701061851_demand_blog_id_on_contents.rb
HornsAndHooves-publify_core-10.4.0 db/migrate/20160701061851_demand_blog_id_on_contents.rb
HornsAndHooves-publify_core-10.3.0 db/migrate/20160701061851_demand_blog_id_on_contents.rb
HornsAndHooves-publify_core-10.2.0 db/migrate/20160701061851_demand_blog_id_on_contents.rb
HornsAndHooves-publify_core-10.1.1 db/migrate/20160701061851_demand_blog_id_on_contents.rb
HornsAndHooves-publify_core-10.1.0 db/migrate/20160701061851_demand_blog_id_on_contents.rb
HornsAndHooves-publify_core-10.0.3 db/migrate/20160701061851_demand_blog_id_on_contents.rb
HornsAndHooves-publify_core-10.0.2 db/migrate/20160701061851_demand_blog_id_on_contents.rb
HornsAndHooves-publify_core-10.0.1 db/migrate/20160701061851_demand_blog_id_on_contents.rb
HornsAndHooves-publify_core-10.0.0 db/migrate/20160701061851_demand_blog_id_on_contents.rb