model一覧
tables = ActiveRecord::Base.connection.tables
=> ["schema_migrations", "users", "photos"]
models = tables.map{|table| Object.const_get(table.classify) rescue nil}.compact
=> User(id: integer, email: string, created_at: datetime), Photo(id: integer, us
er_id: integer, file_name: string, created_at: datetime)]