Sha256: db631688da56ce480125b66831d601a82204b503da4ba9d12d74b56725410190
Contents?: true
Size: 540 Bytes
Versions: 2
Compression:
Stored size: 540 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(:bunnies, :force => true) do |t| t.string :state 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.1.0 | test/db/create_db.rb |
transitions-0.0.18 | test/db/create_db.rb |