Sha256: 753f640f17fc5d37266b9c44c96febd63d3f6b9288c70cbf923370b40dfd325f
Contents?: true
Size: 232 Bytes
Versions: 33
Compression:
Stored size: 232 Bytes
Contents
class AddSortField < ActiveRecord::Migration def self.up add_column :nodes, :position, :float, :default => 1.0 execute "UPDATE nodes SET position = 1.0;" end def self.down remove_column :nodes, :position end end
Version data entries
33 entries across 33 versions & 1 rubygems