Sha256: 4aba36250d00501f76b03f87282af09dfda27afd8853aefe26aed591eca5fa83

Contents?: true

Size: 378 Bytes

Versions: 19

Compression:

Stored size: 378 Bytes

Contents

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

19 entries across 19 versions & 2 rubygems

Version Path
ecm_news2-1.2.0 db/migrate/001_create_ecm_news_items.rb
ecm_news2-1.1.1 db/migrate/001_create_ecm_news_items.rb
ecm_news2-1.1.0 db/migrate/001_create_ecm_news_items.rb
ecm_news2-1.0.4 db/migrate/001_create_ecm_news_items.rb
ecm_news2-1.0.3 db/migrate/001_create_ecm_news_items.rb
ecm_news2-1.0.2 db/migrate/001_create_ecm_news_items.rb
ecm_news2-1.0.0 db/migrate/001_create_ecm_news_items.rb
ecm_news-0.1.12.pre db/migrate/001_create_ecm_news_items.rb
ecm_news-0.1.10.pre db/migrate/001_create_ecm_news_items.rb
ecm_news-0.1.9.pre db/migrate/001_create_ecm_news_items.rb
ecm_news-0.1.8.pre db/migrate/001_create_ecm_news_items.rb
ecm_news-0.1.7.pre db/migrate/001_create_ecm_news_items.rb
ecm_news-0.1.5.pre db/migrate/001_create_ecm_news_items.rb
ecm_news-0.1.4.pre db/migrate/001_create_ecm_news_items.rb
ecm_news-0.1.3.pre db/migrate/001_create_ecm_news_items.rb
ecm_news-0.1.2.pre db/migrate/001_create_ecm_news_items.rb
ecm_news-0.1.1.pre db/migrate/001_create_ecm_news_items.rb
ecm_news-0.1.0.pre db/migrate/001_create_ecm_news_items.rb
ecm_news-0.0.2.pre db/migrate/001_create_ecm_news_items.rb