Sha256: c2009282a562183388aa40ad66b1da54ed25d7c2c2e5da155d13be26ba53c9f5
Contents?: true
Size: 554 Bytes
Versions: 5
Compression:
Stored size: 554 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.text :statement t.string :status, :null => false, :limit=>64 t.boolean :featured, default: false t.integer :priority, default: 1, null: false t.timestamps null: false end end def self.down drop_table :testimonials end end
Version data entries
5 entries across 5 versions & 1 rubygems