mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 07:10:12 +01:00
12 lines
369 B
Ruby
12 lines
369 B
Ruby
class CreatedAt < ActiveRecord::Migration[5.2]
|
|
# Current bug in Rails that prevents rename_column working in SQLite
|
|
# if the column names use symbols instead of strings.
|
|
# <http://dev.rubyonrails.org/changeset/2731>
|
|
def self.up
|
|
rename_column :todos, 'created', 'created_at'
|
|
end
|
|
|
|
def self.down
|
|
rename_column :todos, 'created_at', 'created'
|
|
end
|
|
end
|