about summary refs log tree commit diff stats
path: root/db/migrate/20170625004938_create_entries.rb
blob: 0fb85b2c91699b2b201eefe39a84a3fb1d25bda7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
class CreateEntries < ActiveRecord::Migration[5.1]
  def change
    create_table :entries do |t|
      t.string :title
      t.text :body
      t.string :slug, null: false
      t.string :type, null: false

      t.timestamps
    end
  end
end