class CreateLichessPuzzles < ActiveRecord::Migration[4.2]
  def change
    create_table :lichess_puzzles do |t|
      t.integer :puzzle_id, :null => false
      t.jsonb :data, :null => false
      t.timestamps
    end
    add_index :lichess_puzzles, :puzzle_id, :unique => true
  end
end
