Sha256: bca0c8fd4a163dcb844174c406a7a8853cc1074e39f5390fac2c57818b401faf

Contents?: true

Size: 353 Bytes

Versions: 5

Compression:

Stored size: 353 Bytes

Contents

# frozen_string_literal: true

class CreatePosts < ActiveRecord::Migration[5.2]
  def change
    create_table :posts do |t|
      t.string :title
      t.text :description
      t.belongs_to :author, foreign_key: true
      t.string :category
      t.datetime :dt
      t.float :position
      t.boolean :published

      t.timestamps
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activeadmin_blaze_theme-0.7.4 spec/dummy/db/migrate/20180607053739_create_posts.rb
activeadmin_blaze_theme-0.7.0 spec/dummy/db/migrate/20180607053739_create_posts.rb
activeadmin_blaze_theme-0.6.2 spec/dummy/db/migrate/20180607053739_create_posts.rb
activeadmin_blaze_theme-0.6.0 spec/dummy/db/migrate/20180607053739_create_posts.rb
activeadmin_blaze_theme-0.5.16 spec/dummy/db/migrate/20180607053739_create_posts.rb