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_bookmark-0.1.2.pre2 spec/dummy/db/migrate/120_create_baskets.rb
enju_bookmark-0.1.2.pre spec/dummy/db/migrate/120_create_baskets.rb
enju_circulation-0.1.0.pre4 db/migrate/120_create_baskets.rb
enju_circulation-0.1.0.pre3 db/migrate/120_create_baskets.rb
enju_biblio-0.1.0.pre5 db/migrate/120_create_baskets.rb
enju_biblio-0.1.0.pre4 db/migrate/120_create_baskets.rb
enju_biblio-0.1.0.pre3 db/migrate/120_create_baskets.rb
enju_circulation-0.1.0.pre2 db/migrate/120_create_baskets.rb
enju_bookmark-0.1.1 spec/dummy/db/migrate/120_create_baskets.rb
enju_biblio-0.1.0.pre2 db/migrate/120_create_baskets.rb
enju_bookmark-0.1.0.pre spec/dummy/db/migrate/120_create_baskets.rb
enju_circulation-0.1.0.pre db/migrate/120_create_baskets.rb
enju_biblio-0.1.0.pre db/migrate/120_create_baskets.rb
enju_bookmark-0.1.0 spec/dummy/db/migrate/120_create_baskets.rb
enju_biblio-0.0.9 spec/dummy/db/migrate/120_create_baskets.rb
enju_biblio-0.0.8 spec/dummy/db/migrate/120_create_baskets.rb
enju_bookmark-0.0.22 spec/dummy/db/migrate/120_create_baskets.rb
enju_circulation-0.0.71 db/migrate/120_create_baskets.rb
enju_biblio-0.0.7 spec/dummy/db/migrate/120_create_baskets.rb
enju_biblio-0.0.6 spec/dummy/db/migrate/120_create_baskets.rb