Sha256: 8db0604f829a5201f0a3e83f04a08d29cb8a00ff46a737607960702781e61914

Contents?: true

Size: 554 Bytes

Versions: 8

Compression:

Stored size: 554 Bytes

Contents

# This migration comes from simple_pages (originally 20121206042138)
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

8 entries across 8 versions & 1 rubygems

Version Path
simple-pages-rails-0.7.0 spec/dummy/db/migrate/20121214105802_create_simple_pages.simple_pages.rb
simple-pages-rails-0.6.0 spec/dummy/db/migrate/20121214105802_create_simple_pages.simple_pages.rb
simple-pages-rails-0.5.0 spec/dummy/db/migrate/20121214105802_create_simple_pages.simple_pages.rb
simple-pages-rails-0.4.0 spec/dummy/db/migrate/20121214105802_create_simple_pages.simple_pages.rb
simple-pages-rails-0.3.1 spec/dummy/db/migrate/20121214105802_create_simple_pages.simple_pages.rb
simple-pages-rails-0.3.0 spec/dummy/db/migrate/20121214105802_create_simple_pages.simple_pages.rb
simple-pages-rails-0.2.0 spec/dummy/db/migrate/20121214105802_create_simple_pages.simple_pages.rb
simple-pages-rails-0.1.0 spec/dummy/db/migrate/20121214105802_create_simple_pages.simple_pages.rb