Sha256: 08f45c4ecaec9501427977f1f460ce46a3296c925c17c28f61d56b32052edbfb

Contents?: true

Size: 460 Bytes

Versions: 2

Compression:

Stored size: 460 Bytes

Contents

# Use this schema to create all required tables
class CreateDb < ActiveRecord::Migration
  def self.up
    create_table(:traffic_lights, :force => true) do |t|
      t.string :state
      t.string :name
    end
    
    create_table(:orders, :force => true) do |t|
      t.string :state
      t.string :order_number
      t.datetime :paid_at
      t.datetime :prepared_on
      t.datetime :dispatched_at 
      t.date :cancellation_date
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
transitions-0.0.17 test/db/create_db.rb
transitions-0.0.16 test/db/create_db.rb