Sha256: df1d4402869325e99820c534b88bf56aa672c0671b3a47553a960925d3d6cc6c

Contents?: true

Size: 536 Bytes

Versions: 5

Compression:

Stored size: 536 Bytes

Contents

# frozen_string_literal: true

class CreateSilentPosts < ActiveRecord::Migration[5.1]
  def change
    create_table :silent_posts do |t|
      t.string :title, null: false
      t.text :body, null: false
      t.integer :author_id, null: false
      t.boolean :enabled, default: false
      t.datetime :live_at
      t.datetime :deleted_at

      t.timestamps
    end

    add_index :silent_posts, :author_id
    add_index :silent_posts, :enabled
    add_index :silent_posts, :live_at
    add_index :silent_posts, :deleted_at
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
historiographer-4.1.0 /Users/brettshollenberger/programming/historiographer/spec/db/migrate/20221018204220_create_silent_posts.rb
historiographer-4.0.0 spec/db/migrate/20221018204220_create_silent_posts.rb
historiographer-3.1.2 spec/db/migrate/20221018204220_create_silent_posts.rb
historiographer-3.1.1 spec/db/migrate/20221018204220_create_silent_posts.rb
historiographer-3.1.0 spec/db/migrate/20221018204220_create_silent_posts.rb