Sha256: 926a9db6dddfcc15ef4c513f793cb7b055bdcb7b7e855bee5ca6eea8202d3908

Contents?: true

Size: 268 Bytes

Versions: 550

Compression:

Stored size: 268 Bytes

Contents

class CreateBaskets < ActiveRecord::Migration
  def change
    create_table :baskets do |t|
      t.integer :user_id
      t.text :note
      t.integer :lock_version, :default => 0, :null => false

      t.timestamps
    end
    add_index :baskets, :user_id
  end
end

Version data entries

550 entries across 547 versions & 25 rubygems

Version Path
enju_circulation-0.0.56 db/migrate/120_create_baskets.rb
enju_circulation-0.0.55 db/migrate/120_create_baskets.rb
enju_circulation-0.0.54 db/migrate/120_create_baskets.rb
enju_circulation-0.0.53 db/migrate/120_create_baskets.rb
enju_circulation-0.0.52 db/migrate/120_create_baskets.rb
enju_biblio-0.0.2 spec/dummy/db/migrate/120_create_baskets.rb
enju_biblio-0.0.1 spec/dummy/db/migrate/120_create_baskets.rb
enju_circulation-0.0.51 db/migrate/120_create_baskets.rb
enju_circulation-0.0.50 db/migrate/120_create_baskets.rb
enju_circulation-0.0.49 db/migrate/120_create_baskets.rb