Sha256: b882aa2f0c220a50f8a3b6a687ca9d118a42d10a5ab9e52927c031bd6249c677

Contents?: true

Size: 278 Bytes

Versions: 1

Compression:

Stored size: 278 Bytes

Contents

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

  def down
    drop_table :cleo_references
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acts_as_cleo-0.0.3 lib/generators/acts_as_cleo/templates/install.rb