Sha256: 2cba4ccdf36c4716859a3ff125619437da2fc0aff971097d48089f3bdce8ea6d
Contents?: true
Size: 412 Bytes
Versions: 9
Compression:
Stored size: 412 Bytes
Contents
class CreateShelves < ActiveRecord::Migration[4.2] def change create_table :shelves do |t| t.string :name, null: false t.text :display_name t.text :note t.integer :library_id, default: 1, null: false t.integer :items_count, default: 0, null: false t.integer :position t.timestamps t.datetime :deleted_at end add_index :shelves, :library_id end end
Version data entries
9 entries across 9 versions & 3 rubygems