cirandas.net

ref: master

db/migrate/030_changing_created_on_to_at.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
class ChangingCreatedOnToAt < ActiveRecord::Migration
  def self.up
    rename_column :articles, :created_on, :created_at
    rename_column :articles, :updated_on, :updated_at

    rename_column :article_versions, :created_on, :created_at
    rename_column :article_versions, :updated_on, :updated_at

    rename_column :comments, :created_on, :created_at
  end

  def self.down
  end
end