Sha256: 68b1b2a8b46e53e4c7b91ec29b7e4232a8f1b1a97c086dd6f136b715585866e1
Contents?: true
Size: 457 Bytes
Versions: 3
Compression:
Stored size: 457 Bytes
Contents
class CreateBooks < ActiveRecord::Migration def self.up create_table :books do |t| t.integer :author_id t.string :title t.integer :exemplars t.boolean :digitized, :default => false t.text :notes t.string :tags t.integer :rating t.decimal :price, precision: 7, scale: 2 t.float :special_index t.string :cover t.timestamps end end def self.down drop_table :books end end
Version data entries
3 entries across 3 versions & 1 rubygems