Sha256: 0a6df8ffd686819d7c0d387746dfc0aed1ab2c2b6c39febeafc3f5f105548938

Contents?: true

Size: 425 Bytes

Versions: 5

Compression:

Stored size: 425 Bytes

Contents

# This migration comes from ecm_news_engine (originally 1)
class CreateEcmNewsItems < ActiveRecord::Migration
  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.1 spec/dummy/db/migrate/20160322163513_create_ecm_news_items.ecm_news_engine.rb
ecm_news2_backend-1.2.0 spec/dummy/db/migrate/20160322163513_create_ecm_news_items.ecm_news_engine.rb
ecm_news2_backend-1.1.3 spec/dummy/db/migrate/20160322163513_create_ecm_news_items.ecm_news_engine.rb
ecm_news2_backend-1.1.1 spec/dummy/db/migrate/20160322163513_create_ecm_news_items.ecm_news_engine.rb
ecm_news2_backend-1.1.0 spec/dummy/db/migrate/20160322163513_create_ecm_news_items.ecm_news_engine.rb