Sha256: 340c45cc7449f0e39e95994f750b16d5d224fe9aa6f160a78977ef60ea8f939b

Contents?: true

Size: 371 Bytes

Versions: 3

Compression:

Stored size: 371 Bytes

Contents

class CreateEcmNewsItems < ActiveRecord::Migration[4.2]
  def change
    create_table :ecm_news_items do |t|
      t.string :title
      t.string :locale
      t.text :body
      t.timestamp :published_at
      t.boolean :link_to_more

      # acts as markup
      t.string :markup_language

      # friendly id
      t.string :slug

      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ecm_news2-5.2.0 db/migrate/001_create_ecm_news_items.rb
ecm_news2-5.1.0 db/migrate/001_create_ecm_news_items.rb
ecm_news2-5.0.1 db/migrate/001_create_ecm_news_items.rb