Sha256: 9ec69186ba163ed2ecedec6068e5874d2b307cab383fbb3060638ae41f7ad747
Contents?: true
Size: 484 Bytes
Versions: 7
Compression:
Stored size: 484 Bytes
Contents
# frozen_string_literal: true class CreateSpinaBlogPosts < ActiveRecord::Migration[5.0] def change create_table :spina_blog_posts do |t| t.string :title t.text :excerpt t.text :content t.references :image, foreign_key: { to_table: :spina_images } t.boolean :draft t.datetime :published_at t.string :slug, unique: true, index: true t.references :user, foreign_key: { to_table: :spina_users } t.timestamps end end end
Version data entries
7 entries across 7 versions & 1 rubygems