Sha256: 2fb2dbb381fdd1220f9829f4e3d6f3dc28d24b89dce06de698b237252fe26ee8

Contents?: true

Size: 331 Bytes

Versions: 3

Compression:

Stored size: 331 Bytes

Contents

class CreateChiveArticles < ActiveRecord::Migration
  def change
    create_table :chive_articles do |t|
      t.string :title
      t.text :body
      t.string :slug
      t.string :byline
      t.datetime :published_at, null: false
      t.datetime :expired_at, null: true
      
      t.timestamps null: false
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
chive-0.0.3 db/migrate/20161206165907_create_chive_articles.rb
chive-0.0.2 db/migrate/20161206165907_create_chive_articles.rb
chive-0.0.1 db/migrate/20161206165907_create_chive_articles.rb