Sha256: 3b24af744d5baf9412b771ba28386b5bfc1d30bf31c3053227faa550cc0eb818
Contents?: true
Size: 665 Bytes
Versions: 2
Compression:
Stored size: 665 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 # Additional Details t.text :additional_attributes t.timestamps null: false end add_index :bookings, :status end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dhatu-0.3.0.pre.materialize | db/migrate/20171104163661_create_bookings.rb |
dhatu-0.2.3 | db/migrate/20171104163661_create_bookings.rb |