Sha256: effdba76922bfd65bb159d6ab5bf6e4e7e7558c9efe3826d1496a96ec6e0b21f
Contents?: true
Size: 538 Bytes
Versions: 1
Compression:
Stored size: 538 Bytes
Contents
# frozen_string_literal: true class CreatePosts < ActiveRecord::Migration def change create_table :posts do |t| t.text :title t.text :content t.text :description t.string :slug t.integer :category_id t.string :tags, array: true, default: [] t.datetime :published_at t.integer :import_id t.timestamps end add_index :posts, :slug add_index :posts, :published_at add_index :posts, :category_id end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | db/migrate/20130702133335_create_posts.rb |