Sha256: eba0ed47fcfadb1908d391e3656c41511e2b922c8471bb920662b3c3cee360fd

Contents?: true

Size: 462 Bytes

Versions: 2

Compression:

Stored size: 462 Bytes

Contents

class LandablePagesAddUpdatedBy < Landable::Migration
  def change
    add_column "#{Landable.configuration.database_schema_prefix}landable.pages", :updated_by_author_id, :uuid

    execute <<-SQL
      ALTER TABLE #{Landable.configuration.database_schema_prefix}landable.pages
      ADD CONSTRAINT updated_author_fk FOREIGN KEY(updated_by_author_id)
      REFERENCES #{Landable.configuration.database_schema_prefix}landable.authors(author_id)
    SQL
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
landable-1.14.0 db/migrate/20130909182713_landable_pages__add_updated_by.rb
landable-1.13.2 db/migrate/20130909182713_landable_pages__add_updated_by.rb