Sha256: 070477b0c499e547fa62d289cee05b54ac84db46e6662fc2d1f75f89daab1e6f

Contents?: true

Size: 286 Bytes

Versions: 10

Compression:

Stored size: 286 Bytes

Contents

class CreatePayments < ActiveRecord::Migration
  def self.up
    create_table :payments do |t|
      t.string :cardnumber
      t.string :cardholder
      t.decimal :amount
      t.integer :basket_id

      t.timestamps
    end
  end

  def self.down
    drop_table :payments
  end
end

Version data entries

10 entries across 5 versions & 2 rubygems

Version Path
restfulie-nosqlite-1.0.4 full-examples/rest_from_scratch/part_2/db/migrate/20100830180203_create_payments.rb
restfulie-nosqlite-1.0.4 full-examples/rest_from_scratch/part_3/db/migrate/20100830180203_create_payments.rb
restfulie-1.1.1 full-examples/rest_from_scratch/part_3/db/migrate/20100830180203_create_payments.rb
restfulie-1.1.1 full-examples/rest_from_scratch/part_2/db/migrate/20100830180203_create_payments.rb
restfulie-1.1.0 full-examples/rest_from_scratch/part_2/db/migrate/20100830180203_create_payments.rb
restfulie-1.1.0 full-examples/rest_from_scratch/part_3/db/migrate/20100830180203_create_payments.rb
restfulie-nosqlite-1.0.3 full-examples/rest_from_scratch/part_2/db/migrate/20100830180203_create_payments.rb
restfulie-nosqlite-1.0.3 full-examples/rest_from_scratch/part_3/db/migrate/20100830180203_create_payments.rb
restfulie-1.0.3 full-examples/rest_from_scratch/part_3/db/migrate/20100830180203_create_payments.rb
restfulie-1.0.3 full-examples/rest_from_scratch/part_2/db/migrate/20100830180203_create_payments.rb