Sha256: 25511fc61fb9bba08f1a1bc103b2e49d5da764e8c1e7596735b76828b8ad5404
Contents?: true
Size: 496 Bytes
Versions: 4
Compression:
Stored size: 496 Bytes
Contents
class CreateArticles < ActiveRecord::Migration def change create_table :articles do |t| t.string :slug t.string :title t.string :description t.string :keywords t.string :locale t.text :excerpt t.text :content t.datetime :published_at t.boolean :highlight t.timestamps end add_index :articles, :slug add_index :articles, [:published_at, :locale] add_index :articles, [:highlight, :published_at, :locale] end end
Version data entries
4 entries across 4 versions & 1 rubygems