Sha256: ba6176cdb810d7f0d3c9db07cb3b5c3a8d5e7c3fbe7383047e5732bcc603ec9d

Contents?: true

Size: 464 Bytes

Versions: 16

Compression:

Stored size: 464 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

16 entries across 16 versions & 1 rubygems

Version Path
landable-1.13.1 db/migrate/20130909182713_landable_pages__add_updated_by.rb
landable-1.12.3 db/migrate/20130909182713_landable_pages__add_updated_by.rb
landable-1.12.2 db/migrate/20130909182713_landable_pages__add_updated_by.rb
landable-1.12.1 db/migrate/20130909182713_landable_pages__add_updated_by.rb
landable-1.11.1 db/migrate/20130909182713_landable_pages__add_updated_by.rb
landable-1.11.0 db/migrate/20130909182713_landable_pages__add_updated_by.rb
landable-1.10.0.rc2 db/migrate/20130909182713_landable_pages__add_updated_by.rb
landable-1.10.0.rc1 db/migrate/20130909182713_landable_pages__add_updated_by.rb
landable-1.9.2 db/migrate/20130909182713_landable_pages__add_updated_by.rb
landable-1.9.1 db/migrate/20130909182713_landable_pages__add_updated_by.rb
landable-1.9.0 db/migrate/20130909182713_landable_pages__add_updated_by.rb
landable-1.9.0.rc2 db/migrate/20130909182713_landable_pages__add_updated_by.rb
landable-1.9.0.rc1 db/migrate/20130909182713_landable_pages__add_updated_by.rb
landable-1.8.0 db/migrate/20130909182713_landable_pages__add_updated_by.rb
landable-1.7.1.rc1 db/migrate/20130909182713_landable_pages__add_updated_by.rb
landable-1.7.0 db/migrate/20130909182713_landable_pages__add_updated_by.rb