Sha256: e068578befe85960359c7ccea87ff756ccdd3747919c787f2d8cccca327667c4
Contents?: true
Size: 407 Bytes
Versions: 1
Compression:
Stored size: 407 Bytes
Contents
class CreateShelves < ActiveRecord::Migration 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_seed-0.3.0.beta.1 | spec/dummy/db/migrate/069_create_shelves.rb |