Sha256: b8903d76e2d5a525adb61c4156ee0f4070908d01eb7bd3cb722018f0ca1a3e0a
Contents?: true
Size: 435 Bytes
Versions: 10
Compression:
Stored size: 435 Bytes
Contents
class CreateVestalVersions < ActiveRecord::Migration def self.up create_table :versions do |t| t.belongs_to :versioned, :polymorphic => true t.text :changes t.integer :number t.datetime :created_at end change_table :versions do |t| t.index [:versioned_type, :versioned_id] t.index :number t.index :created_at end end def self.down drop_table :versions end end
Version data entries
10 entries across 10 versions & 1 rubygems