Sha256: 645c190ad35a7d5db8c15a1d3957a2dc35578038c45ff3b02d9733828ef47788

Contents?: true

Size: 334 Bytes

Versions: 1

Compression:

Stored size: 334 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

1 entries across 1 versions & 1 rubygems

Version Path
acts_as_featureable-0.0.2 lib/generators/templates/create_features.rb