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.2.4 spec/dummy/db/migrate/120_create_baskets.rb
enju_subject-0.2.3 spec/dummy/db/migrate/120_create_baskets.rb
enju_manifestation_viewer-0.2.2 spec/dummy/db/migrate/120_create_baskets.rb
enju_message-0.2.3 spec/dummy/db/migrate/120_create_baskets.rb
enju_event-0.2.2 spec/dummy/db/migrate/120_create_baskets.rb
enju_circulation-0.2.4 spec/dummy/db/migrate/120_create_baskets.rb
enju_nii-0.2.1 spec/dummy/db/migrate/120_create_baskets.rb
enju_subject-0.2.2 spec/dummy/db/migrate/120_create_baskets.rb
enju_circulation-0.2.3 spec/dummy/db/migrate/120_create_baskets.rb
enju_message-0.2.2 spec/dummy/db/migrate/120_create_baskets.rb
enju_biblio-0.2.3 spec/dummy/db/migrate/120_create_baskets.rb
enju_grid-0.2.0 spec/dummy/db/migrate/120_create_baskets.rb
enju_biblio-0.2.2 spec/dummy/db/migrate/120_create_baskets.rb
enju_manifestation_viewer-0.2.1 spec/dummy/db/migrate/120_create_baskets.rb
enju_circulation-0.2.2 spec/dummy/db/migrate/120_create_baskets.rb
enju_event-0.2.1 spec/dummy/db/migrate/120_create_baskets.rb
enju_message-0.2.1 spec/dummy/db/migrate/120_create_baskets.rb
enju_subject-0.2.1 spec/dummy/db/migrate/120_create_baskets.rb
enju_leaf-1.2.1 spec/dummy/db/migrate/120_create_baskets.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.0/spec/dummy/db/migrate/120_create_baskets.rb