Sha256: 950a4c9dab15ebd31e8b8accf40f6b36e1a3c145da992a3bd7b01a1c0b1c189a

Contents?: true

Size: 671 Bytes

Versions: 12

Compression:

Stored size: 671 Bytes

Contents

class CreateAudits < ActiveRecord::Migration
  def change
    # Audit Flags Field on Pages, Templates
    add_column "#{Landable.configuration.database_schema_prefix}landable.pages",     :audit_flags, :string, array: true, default: []
    add_column "#{Landable.configuration.database_schema_prefix}landable.templates", :audit_flags, :string, array: true, default: []

    # Audit Model
    create_table "#{Landable.configuration.database_schema_prefix}landable.audits" do |t|
      t.uuid   :auditable_id
      t.string :auditable_type

      t.text   :notes
      t.text   :approver
      t.string :flags, array: true, default: []

      t.timestamps
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
landable-1.13.1 db/migrate/20140509192856_create_audits.rb
landable-1.12.3 db/migrate/20140509192856_create_audits.rb
landable-1.12.2 db/migrate/20140509192856_create_audits.rb
landable-1.12.1 db/migrate/20140509192856_create_audits.rb
landable-1.11.1 db/migrate/20140509192856_create_audits.rb
landable-1.11.0 db/migrate/20140509192856_create_audits.rb
landable-1.10.0.rc2 db/migrate/20140509192856_create_audits.rb
landable-1.10.0.rc1 db/migrate/20140509192856_create_audits.rb
landable-1.9.2 db/migrate/20140509192856_create_audits.rb
landable-1.9.1 db/migrate/20140509192856_create_audits.rb
landable-1.9.0 db/migrate/20140509192856_create_audits.rb
landable-1.9.0.rc2 db/migrate/20140509192856_create_audits.rb