Sha256: a448d24a9f5d5467040e7985e26af870fb74b983a539e83c54efbe79dda8860b

Contents?: true

Size: 601 Bytes

Versions: 3

Compression:

Stored size: 601 Bytes

Contents

class CreateBookings < ActiveRecord::Migration[5.1]
  def change
    create_table :bookings do |t|
      t.string :name, :null => false, limit: 256
      t.references :service, index: true

      t.string :email, null: true, limit: 256
      t.string :mobile, null: true, limit: 16

      t.date :date, :null => true
      t.string :time, null: true, limit: 16

      t.string :message, :limit=>1048

      t.boolean :featured, default: false
      t.string :status, :null => false, :default=>"new", :limit=>16
      
      t.timestamps null: false
    end

    add_index :bookings, :status
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dhatu-0.2.2 db/migrate/20171104163661_create_bookings.rb
dhatu-0.2.1 db/migrate/20171104163661_create_bookings.rb
dhatu-0.2.0 db/migrate/20171104163661_create_bookings.rb