Sha256: 3ca74dd7d73aa23e98261230395726fe870de4fbd9e0f94c17ea8869b6610dad
Contents?: true
Size: 361 Bytes
Versions: 106
Compression:
Stored size: 361 Bytes
Contents
class AddVersionedTables < ActiveRecord::Migration def self.up create_table("things") do |t| t.column :title, :text t.column :price, :decimal, :precision => 7, :scale => 2 t.column :type, :string end Thing.create_versioned_table end def self.down Thing.drop_versioned_table drop_table "things" rescue nil end end
Version data entries
106 entries across 106 versions & 17 rubygems