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