Sha256: c1969bf007756ac182c636a03d373f562fc0f0a44ef0f42198eef3f93d3f1768

Contents?: true

Size: 312 Bytes

Versions: 6

Compression:

Stored size: 312 Bytes

Contents

# frozen_string_literal: true

class CreateTramwayNewsNews < ActiveRecord::Migration[5.1]
  def change
    create_table :tramway_news_news do |t|
      t.text :title
      t.text :body
      t.datetime :published_at
      t.text :photo
      t.text :state, default: :active

      t.timestamps
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tramway-news-1.0.4.6 lib/tramway/news/generators/templates/create_tramway_news_news.rb
tramway-news-1.0.4.5 lib/tramway/news/generators/templates/create_tramway_news_news.rb
tramway-news-1.0.4.4 lib/tramway/news/generators/templates/create_tramway_news_news.rb
tramway-news-1.0.5 lib/tramway/news/generators/templates/create_tramway_news_news.rb
tramway-news-1.0.4.3 lib/tramway/news/generators/templates/create_tramway_news_news.rb
tramway-news-1.0.4.2 lib/tramway/news/generators/templates/create_tramway_news_news.rb