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_biblio-0.0.5 spec/dummy/db/migrate/120_create_baskets.rb
enju_biblio-0.0.4 spec/dummy/db/migrate/120_create_baskets.rb
enju_circulation-0.0.70 db/migrate/120_create_baskets.rb
enju_circulation-0.0.69 db/migrate/120_create_baskets.rb
enju_circulation-0.0.68 db/migrate/120_create_baskets.rb
enju_circulation-0.0.67 db/migrate/120_create_baskets.rb
enju_circulation-0.0.66 db/migrate/120_create_baskets.rb
enju_circulation-0.0.65 db/migrate/120_create_baskets.rb
enju_bookmark-0.0.21 spec/dummy/db/migrate/120_create_baskets.rb
enju_circulation-0.0.64 db/migrate/120_create_baskets.rb
enju_circulation-0.0.63 db/migrate/120_create_baskets.rb
enju_bookmark-0.0.20 spec/dummy/db/migrate/120_create_baskets.rb
enju_circulation-0.0.62 db/migrate/120_create_baskets.rb
enju_circulation-0.0.61 db/migrate/120_create_baskets.rb
enju_biblio-0.0.3 spec/dummy/db/migrate/120_create_baskets.rb
enju_circulation-0.0.60 db/migrate/120_create_baskets.rb
enju_circulation-0.0.59 db/migrate/120_create_baskets.rb
enju_circulation-0.0.58 db/migrate/120_create_baskets.rb
enju_circulation-0.0.57 db/migrate/120_create_baskets.rb
enju_bookmark-0.0.19 spec/dummy/db/migrate/120_create_baskets.rb