Sha256: 0e50136edcbeb0753295d7fd979d5fc9771c9e60a9054bcc6a06a419432e3e51
Contents?: true
Size: 628 Bytes
Versions: 5
Compression:
Stored size: 628 Bytes
Contents
class CreateOffers < ActiveRecord::Migration[5.0] def change create_table :offers do |t| t.string :title, :null => false, :limit=>256 t.string :offer_text, :null => false, :limit=>64 t.text :description t.datetime :starts_at, :null => true t.datetime :ends_at, :null => true t.references :category, index: true t.boolean :featured, default: false t.string :status, :null => false, :default=>"unpublished", :limit=>16 t.integer :priority, default: 1, null: false t.timestamps null: false end add_index :offers, :status end end
Version data entries
5 entries across 5 versions & 1 rubygems