Sha256: fb3dc09a2e4c817b8558920648a3b1839c5e2dbf794988616f3d95502a1d876c
Contents?: true
Size: 485 Bytes
Versions: 9
Compression:
Stored size: 485 Bytes
Contents
class CreateSimplePages < ActiveRecord::Migration def change create_table :simple_pages do |t| t.string :url t.string :title t.string :excerpt t.text :content t.belongs_to :author, polymorphic: true t.string :layout_at t.datetime :published_at t.timestamps end add_index :simple_pages, [:author_id, :author_type], name: 'author' add_index :simple_pages, :layout_at add_index :simple_pages, :published_at end end
Version data entries
9 entries across 9 versions & 1 rubygems