Sha256: 88514e3b5059df7a1c58a1b9930d469e9acef930c90888972fb01567cefd297e

Contents?: true

Size: 430 Bytes

Versions: 5

Compression:

Stored size: 430 Bytes

Contents

# This migration comes from ecm_news_engine (originally 1)
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

5 entries across 5 versions & 1 rubygems

Version Path
ecm_news2_backend-1.2.6 spec/dummy/db/migrate/20160322163513_create_ecm_news_items.ecm_news_engine.rb
ecm_news2_backend-1.2.5 spec/dummy/db/migrate/20160322163513_create_ecm_news_items.ecm_news_engine.rb
ecm_news2_backend-1.2.4 spec/dummy/db/migrate/20160322163513_create_ecm_news_items.ecm_news_engine.rb
ecm_news2_backend-1.2.3 spec/dummy/db/migrate/20160322163513_create_ecm_news_items.ecm_news_engine.rb
ecm_news2_backend-1.2.2 spec/dummy/db/migrate/20160322163513_create_ecm_news_items.ecm_news_engine.rb