Sha256: 74a018b3e1be91bb64d3b3ca4437d355186faea709ffbe94e4d785a0106fa669
Contents?: true
Size: 358 Bytes
Versions: 5
Compression:
Stored size: 358 Bytes
Contents
class CreateFeatures < ActiveRecord::Migration def change create_table :features do |t| t.references :featureable, :polymorphic => true t.string :title t.text :summary t.integer :position, :null => false t.string :category t.timestamps end add_index :features, [:featureable_type, :featureable_id] end end
Version data entries
5 entries across 5 versions & 1 rubygems