Sha256: b1f017e806d6e3d0f9691a18d5b9ee98a35d525e1df3cf18128bfcc770c0b9fe

Contents?: true

Size: 488 Bytes

Versions: 8

Compression:

Stored size: 488 Bytes

Contents

class CreateTestimonials < ActiveRecord::Migration[5.0]
  def self.up
    create_table :testimonials do |t|
      t.string :name, :null => false, :limit=>256
      t.string :designation, :null => true, :limit=>256
      t.string :organisation, :null => true, :limit=>256
      t.string :status, :null => false, :limit=>64
      t.boolean :featured, default: false
      t.text :statement
      t.timestamps null: false
    end
  end

  def self.down
    drop_table :testimonials
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dhatu-0.1.25 db/migrate/20171012073510_create_testimonials.rb
dhatu-0.1.24 db/migrate/20171012073510_create_testimonials.rb
dhatu-0.1.23 db/migrate/20171012073510_create_testimonials.rb
dhatu-0.1.22 db/migrate/20171012073510_create_testimonials.rb
dhatu-0.1.21 db/migrate/20171012073510_create_testimonials.rb
dhatu-0.1.20 db/migrate/20171012073510_create_testimonials.rb
dhatu-0.1.19 db/migrate/20171012073510_create_testimonials.rb
dhatu-0.1.18 db/migrate/20171012073510_create_testimonials.rb