class CreateGrabados < ActiveRecord::Migration[7.0]
  def change
    create_table :grabados do |t|
      t.string :name
      t.string :style_es
      t.string :style_en
      t.integer :paperw
      t.integer :paperh
      t.integer :platew
      t.integer :plateh
      t.integer :year
      t.string :state
      t.integer :price
      t.string :edition
      t.string :image
      t.integer :code
      t.references :artist, null: false, foreign_key: true
      t.references :collection, null: false, foreign_key: true

      t.timestamps
    end
  end
end
