Parent

Methods

AddTimestamps

Public Instance Methods

down() click to toggle source
# File lib/larch/db/migrate/002_add_timestamps.rb, line 2
def down
  alter_table :accounts do
    drop_column :created_at
    drop_column :updated_at
  end
end
up() click to toggle source
# File lib/larch/db/migrate/002_add_timestamps.rb, line 9
def up
  alter_table :accounts do
    add_column :created_at, :integer
    add_column :updated_at, :integer
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.