Sha256: e6c28ac076ec120fd00827d7094704b6d527643b6eb999961e72da9a4a63d466

Contents?: true

Size: 257 Bytes

Versions: 2

Compression:

Stored size: 257 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration
  def self.up
    create_table :cleo_references do |t|
      t.timestamps
      t.string :record_type
      t.integer :record_id
    end
  end

  def down
    drop_table :cleo_references
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
acts_as_cleo-3.0.2 lib/generators/acts_as_cleo/install/templates/install.rb
acts_as_cleo-3.0.1 lib/generators/acts_as_cleo/install/templates/install.rb