Sha256: 029be675a405782eb7a8e28308037c667ad34484a57264bb06e08d6c8f8d1f81

Contents?: true

Size: 339 Bytes

Versions: 9

Compression:

Stored size: 339 Bytes

Contents

class AddTimestamps < ActiveRecord::Migration

  def self.up
    [:templates, :part_types].each do |table|
      change_table(table) do |t|
        t.timestamps
      end
    end
  end
  
  def self.down
    [:templates, :part_types].each do |table|
      change_table(table) do |t|
        t.remove_timestamps
      end
    end
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
radiant-templates-extension-1.0.8 db/migrate/011_add_timestamps.rb
radiant-templates-extension-1.0.7 db/migrate/011_add_timestamps.rb
radiant-templates-extension-1.0.6 db/migrate/011_add_timestamps.rb
radiant-templates-extension-1.0.5 db/migrate/011_add_timestamps.rb
radiant-templates-extension-1.0.4 db/migrate/011_add_timestamps.rb
radiant-templates-extension-1.0.3 db/migrate/011_add_timestamps.rb
radiant-templates-extension-1.0.2 db/migrate/011_add_timestamps.rb
radiant-templates-extension-1.0.1 db/migrate/011_add_timestamps.rb
radiant-templates-extension-1.0.0 db/migrate/011_add_timestamps.rb