Sha256: 1a69e96052d9073c74f16380bcb1c9edbb071ceb3826bcb5163331e07df87bf2
Contents?: true
Size: 440 Bytes
Versions: 5
Compression:
Stored size: 440 Bytes
Contents
class CreateSkylineSections < ActiveRecord::Migration def self.up create_table :skyline_sections do |t| t.references :page_version t.references :sectionable, :polymorphic => true t.integer :position, :null => false, :default => 1 t.string :template t.timestamps end add_index :skyline_sections, [:page_version_id, :position] end def self.down drop_table :skyline_sections end end
Version data entries
5 entries across 5 versions & 2 rubygems