Sha256: fd2da624f32ff961544840084b4132807f0a3829983ce8622bfd2718b295ef45

Contents?: true

Size: 824 Bytes

Versions: 21

Compression:

Stored size: 824 Bytes

Contents

class CreateEmsReports < ActiveRecord::Migration
  def change
    create_table :ems_reports do |t|
      t.string :slug
      t.string :title
      t.text :standfirst
      t.text :content
      t.boolean :hot
      t.boolean :featured
      t.boolean :toc
      t.boolean :comment
      t.string :meta_title
      t.text :meta_description
      t.datetime :publish_from
      t.string :status
      t.string :content_disposition
      t.integer :category_id
      t.string :download_cta
      # paperclip
      t.string :image_file_name
      t.string :image_content_type
      t.integer :image_file_size
      t.datetime :image_updated_at
      t.string :report_file_name
      t.string :report_content_type
      t.integer :report_file_size
      t.datetime :report_updated_at
      
      t.timestamps
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ems-0.1.12 db/migrate/20120403131309_create_ems_reports.rb
ems-0.1.11 db/migrate/20120403131309_create_ems_reports.rb
ems-0.1.10 db/migrate/20120403131309_create_ems_reports.rb
ems-0.1.9 db/migrate/20120403131309_create_ems_reports.rb
ems-0.1.8 db/migrate/20120403131309_create_ems_reports.rb
ems-0.1.7 db/migrate/20120403131309_create_ems_reports.rb
ems-0.1.6 db/migrate/20120403131309_create_ems_reports.rb
ems-0.1.5 db/migrate/20120403131309_create_ems_reports.rb
ems-0.1.4 db/migrate/20120403131309_create_ems_reports.rb
ems-0.1.3 db/migrate/20120403131309_create_ems_reports.rb
ems-0.1.2 db/migrate/20120403131309_create_ems_reports.rb
ems-0.1.1 db/migrate/20120403131309_create_ems_reports.rb
ems-0.1.0 db/migrate/20120403131309_create_ems_reports.rb
ems-0.0.9 db/migrate/20120403131309_create_ems_reports.rb
ems-0.0.8 db/migrate/20120403131309_create_ems_reports.rb
ems-0.0.7 db/migrate/20120403131309_create_ems_reports.rb
ems-0.0.6 db/migrate/20120403131309_create_ems_reports.rb
ems-0.0.5 db/migrate/20120403131309_create_ems_reports.rb
ems-0.0.4 db/migrate/20120403131309_create_ems_reports.rb
ems-0.0.3 db/migrate/20120403131309_create_ems_reports.rb