Sha256: afc8e11040896ea532c0b48a0ca24576eb3f604438860b747ed656ec5e0e8cc1
Contents?: true
Size: 471 Bytes
Versions: 55
Compression:
Stored size: 471 Bytes
Contents
class CreatePageParts < ActiveRecord::Migration def self.up create_table :page_parts do |t| t.string :key, :limit => 10, :null => false t.text :content t.integer :partable_id, :null => false t.string :partable_type, :limit => 50, :null => false t.timestamps end add_index :page_parts, :key add_index :page_parts, [:partable_type, :partable_id] end def self.down drop_table :page_parts end end
Version data entries
55 entries across 49 versions & 2 rubygems