Sha256: 8ca01e6359b59b7833b80f48456ab2e3d62f106816bf369a7d82a7db8a2f30dd

Contents?: true

Size: 223 Bytes

Versions: 2

Compression:

Stored size: 223 Bytes

Contents

class AddPageTemplateIdToPages < ActiveRecord::Migration[5.0]
  def change
    change_table :cavy_pages do |t|
      t.integer :cavy_page_template_id
    end

    add_foreign_key :cavy_pages, :cavy_page_templates
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cavy-0.1.0.beta2 db/migrate/20170214073143_add_page_template_id_to_pages.rb
cavy-0.1.0.beta1 db/migrate/20170214073143_add_page_template_id_to_pages.rb