Sha256: 86ba1c0abdda7f1a5727233f3ec9e1ddbfe47b3c11f9f0be6f1886be6229e726

Contents?: true

Size: 242 Bytes

Versions: 34

Compression:

Stored size: 242 Bytes

Contents

class CreateBaskets < ActiveRecord::Migration
  def change
    create_table :baskets do |t|
      t.references :user, index: true
      t.text :note
      t.integer :lock_version, default: 0, null: false

      t.timestamps
    end
  end
end

Version data entries

34 entries across 30 versions & 13 rubygems

Version Path
enju_leaf-1.2.2 spec/dummy/db/migrate/120_create_baskets.rb
enju_manifestation_viewer-0.2.4 spec/dummy/db/migrate/120_create_baskets.rb
enju_library-0.2.5 db/migrate/120_create_baskets.rb
enju_manifestation_viewer-0.2.3 spec/dummy/db/migrate/120_create_baskets.rb
enju_biblio-0.2.5 spec/dummy/db/migrate/120_create_baskets.rb
enju_bookmark-0.2.2 spec/dummy/db/migrate/120_create_baskets.rb
enju_purchase_request-0.2.1 spec/dummy/db/migrate/120_create_baskets.rb
enju_inter_library_loan-0.2.0 spec/dummy/db/migrate/120_create_baskets.rb
enju_message-0.2.4 spec/dummy/db/migrate/120_create_baskets.rb
enju_event-0.2.3 spec/dummy/db/migrate/120_create_baskets.rb
enju_circulation-0.2.5 spec/dummy/db/migrate/120_create_baskets.rb
enju_seed-0.2.3 spec/dummy/db/migrate/120_create_baskets.rb
enju_library-0.2.4 db/migrate/120_create_baskets.rb
enju_bookmark-0.2.1 spec/dummy/db/migrate/120_create_baskets.rb
enju_library-0.2.3 db/migrate/120_create_baskets.rb
enju_seed-0.2.2 spec/dummy/db/migrate/120_create_baskets.rb
enju_ndl-0.2.3 spec/dummy/db/migrate/120_create_baskets.rb
enju_ndl-0.2.2 spec/dummy/db/migrate/120_create_baskets.rb
enju_ndl-0.2.1 spec/dummy/db/migrate/120_create_baskets.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/bundler/gems/enju_library-d36f415e177e/db/migrate/120_create_baskets.rb