Sha256: 8714f2ecbc70262a87b6ce3e98ed803932c8c32cde42b3eb2efc8352d8b7c704

Contents?: true

Size: 343 Bytes

Versions: 16

Compression:

Stored size: 343 Bytes

Contents

class AddOptimisticLocking < ActiveRecord::Migration[5.1]

  def self.up
    [:pages, :layouts, :snippets, :users].each do |table|
      add_column table, :lock_version, :integer, :default => 0
    end
  end

  def self.down
    [:pages, :layouts, :snippets, :users].each do |table|
      remove_column table, :lock_version
    end
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
trusty-cms-3.3.2 db/migrate/015_add_optimistic_locking.rb
trusty-cms-3.3.1 db/migrate/015_add_optimistic_locking.rb
trusty-cms-3.2.1 db/migrate/015_add_optimistic_locking.rb
trusty-cms-3.3.0 db/migrate/015_add_optimistic_locking.rb
trusty-cms-3.2.0 db/migrate/015_add_optimistic_locking.rb
trusty-cms-3.1.11 db/migrate/015_add_optimistic_locking.rb
trusty-cms-3.1.10 db/migrate/015_add_optimistic_locking.rb
trusty-cms-3.1.9 db/migrate/015_add_optimistic_locking.rb
trusty-cms-3.1.8 db/migrate/015_add_optimistic_locking.rb
trusty-cms-3.1.7 db/migrate/015_add_optimistic_locking.rb
trusty-cms-3.1.6 db/migrate/015_add_optimistic_locking.rb
trusty-cms-3.1.5 db/migrate/015_add_optimistic_locking.rb
trusty-cms-3.1.3 db/migrate/015_add_optimistic_locking.rb
trusty-cms-3.1.2 db/migrate/015_add_optimistic_locking.rb
trusty-cms-3.1.1 db/migrate/015_add_optimistic_locking.rb
trusty-cms-3.1.0 db/migrate/015_add_optimistic_locking.rb