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

Version Path
laserlemon-vestal_versions-0.1.0 generators/vestal_versions_migration/templates/migration.rb
laserlemon-vestal_versions-0.2.0 generators/vestal_versions_migration/templates/migration.rb
laserlemon-vestal_versions-0.2.1 generators/vestal_versions_migration/templates/migration.rb
laserlemon-vestal_versions-0.2.2 generators/vestal_versions_migration/templates/migration.rb
laserlemon-vestal_versions-0.2.3 generators/vestal_versions_migration/templates/migration.rb
laserlemon-vestal_versions-0.2.4 generators/vestal_versions_migration/templates/migration.rb
laserlemon-vestal_versions-0.2.5 generators/vestal_versions_migration/templates/migration.rb
laserlemon-vestal_versions-0.2.6 generators/vestal_versions_migration/templates/migration.rb
laserlemon-vestal_versions-0.3.0 generators/vestal_versions_migration/templates/migration.rb
laserlemon-vestal_versions-0.4.1 generators/vestal_versions_migration/templates/migration.rb